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 | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch) | |
tree | d3349caea4095825a55b5ba24fe758067b29ce6f /util/generic/vector.h | |
parent | 9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff) | |
download | ydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 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 a5b258955a8..d6631a8c60c 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(); } |