aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/vector.h
diff options
context:
space:
mode:
authorstanly <stanly@yandex-team.ru>2022-02-10 16:46:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:49 +0300
commitcde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch)
treed3349caea4095825a55b5ba24fe758067b29ce6f /util/generic/vector.h
parent9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff)
downloadydb-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.h28
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();
}