diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | 6170310e8721e225f64ddabf7a7358253d7a1249 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/generic/vector.h | |
parent | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff) | |
download | ydb-6170310e8721e225f64ddabf7a7358253d7a1249.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/vector.h')
-rw-r--r-- | util/generic/vector.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/generic/vector.h b/util/generic/vector.h index d6631a8c60c..a5b258955a8 100644 --- a/util/generic/vector.h +++ b/util/generic/vector.h @@ -6,7 +6,7 @@ #include <util/memory/alloc.h> #include <vector> -#include <initializer_list> +#include <initializer_list> template <class T, class A> class TVector: public std::vector<T, TReboundAllocator<A, T>> { @@ -58,15 +58,15 @@ public: } inline TVector(std::initializer_list<T> il) - : TBase(il) - { - } - + : TBase(il) + { + } + inline TVector(std::initializer_list<T> il, const typename TBase::allocator_type& a) - : TBase(il, a) - { - } - + : TBase(il, a) + { + } + inline TVector(const TSelf& src) : TBase(src) { @@ -93,11 +93,11 @@ public: return *this; } - inline TSelf& operator=(std::initializer_list<T> il) { - this->assign(il.begin(), il.end()); - return *this; - } - + inline TSelf& operator=(std::initializer_list<T> il) { + this->assign(il.begin(), il.end()); + return *this; + } + inline explicit operator bool() const noexcept { return !this->empty(); } |