aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/holder_vector.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/draft/holder_vector.h
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft/holder_vector.h')
-rw-r--r--util/draft/holder_vector.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h
index c03422584c..1c62055bd9 100644
--- a/util/draft/holder_vector.h
+++ b/util/draft/holder_vector.h
@@ -15,15 +15,15 @@ public:
}
~THolderVector() {
- Clear();
- }
-
- void Clear() {
+ Clear();
+ }
+
+ void Clear() {
for (typename TBase::iterator it = TBase::begin(); it != TBase::end(); ++it) {
if (*it)
D::Destroy(*it);
}
- TBase::clear();
+ TBase::clear();
}
size_t Size() const {
@@ -46,9 +46,9 @@ public:
}
void PushBack(THolder<T> t) {
- PushBack(t.Release());
- }
-
+ PushBack(t.Release());
+ }
+
void Reset(size_t i, THolder<T> t) {
T* current = (*this)[i];
if (current) {
@@ -88,9 +88,9 @@ public:
using TBase::back;
using TBase::begin;
using TBase::capacity;
- using TBase::empty;
+ using TBase::empty;
using TBase::end;
- using TBase::front;
+ using TBase::front;
using TBase::reserve;
using TBase::size;