aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/holder_vector.h
diff options
context:
space:
mode:
authorantonovvk <antonovvk@yandex-team.ru>2022-02-10 16:47:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:52 +0300
commit37de222addabbef336dcaaea5f7c7645a629fc6d (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/draft/holder_vector.h
parent37a63debdc21e372d99e1808cdd31aecf75018c3 (diff)
downloadydb-37de222addabbef336dcaaea5f7c7645a629fc6d.tar.gz
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft/holder_vector.h')
-rw-r--r--util/draft/holder_vector.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/draft/holder_vector.h b/util/draft/holder_vector.h
index 40f958cdd33..1c62055bd95 100644
--- a/util/draft/holder_vector.h
+++ b/util/draft/holder_vector.h
@@ -58,13 +58,13 @@ public:
(*this)[i] = t.Release();
}
- void PopBack() {
- if (size()) {
- D::Destroy(back());
- TBase::pop_back();
- }
- }
-
+ void PopBack() {
+ if (size()) {
+ D::Destroy(back());
+ TBase::pop_back();
+ }
+ }
+
T* Release(size_t i) {
T* t = (*this)[i];
(*this)[i] = nullptr;