diff options
author | antonovvk <[email protected]> | 2022-02-10 16:47:52 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:52 +0300 |
commit | 37de222addabbef336dcaaea5f7c7645a629fc6d (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/draft | |
parent | 37a63debdc21e372d99e1808cdd31aecf75018c3 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/draft')
-rw-r--r-- | util/draft/holder_vector.h | 14 |
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; |