diff options
author | elantsev <elantsev@yandex-team.ru> | 2022-02-10 16:49:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:47 +0300 |
commit | 095c2e55a230f89487c2f2caace05e108742d72c (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/intrlist.h | |
parent | afa1b6e6f8b6ee9f8df080d41bcb19b95c25c261 (diff) | |
download | ydb-095c2e55a230f89487c2f2caace05e108742d72c.tar.gz |
Restoring authorship annotation for <elantsev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/intrlist.h')
-rw-r--r-- | util/generic/intrlist.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/intrlist.h b/util/generic/intrlist.h index 315e10ed48..b5d3f2051b 100644 --- a/util/generic/intrlist.h +++ b/util/generic/intrlist.h @@ -348,11 +348,11 @@ public: this->Swap(right); } - inline TIntrusiveList& operator=(TIntrusiveList&& rhs) noexcept { - this->Swap(rhs); - return *this; - } - + inline TIntrusiveList& operator=(TIntrusiveList&& rhs) noexcept { + this->Swap(rhs); + return *this; + } + inline explicit operator bool() const noexcept { return !Empty(); } @@ -611,16 +611,16 @@ public: this->Clear(); } - TIntrusiveListWithAutoDelete& operator=(TIntrusiveListWithAutoDelete&& rhs) noexcept { + TIntrusiveListWithAutoDelete& operator=(TIntrusiveListWithAutoDelete&& rhs) noexcept { TIntrusiveList<T, Tag>::operator=(std::move(rhs)); - return *this; - } - + return *this; + } + public: inline void Clear() noexcept { - this->ForEach([](auto* item) { - D::Destroy(item); - }); + this->ForEach([](auto* item) { + D::Destroy(item); + }); } inline static void Cut(TIterator begin, TIterator end) noexcept { |