diff options
author | vadim-xd <vadim-xd@yandex-team.com> | 2024-08-23 15:55:32 +0300 |
---|---|---|
committer | vadim-xd <vadim-xd@yandex-team.com> | 2024-08-23 16:06:29 +0300 |
commit | 5fbd2e59a1f093d334ae5c4bb316d503420bfef3 (patch) | |
tree | 0a129ea8a04ab61304c0c8efdc1343015d222343 /util | |
parent | a5c6c563bd75d09fee9d2579fca8ff469e2dad40 (diff) | |
download | ydb-5fbd2e59a1f093d334ae5c4bb316d503420bfef3.tar.gz |
Remove remaining calls of Container() (fixup rXXXXXX)
b2b7d42af6f055ef24e22f69cac6c0f5560f6120
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/queue.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/generic/queue.h b/util/generic/queue.h index ade2c07544..f1d358daf2 100644 --- a/util/generic/queue.h +++ b/util/generic/queue.h @@ -50,9 +50,10 @@ public: inline T PopValue() { Y_ASSERT(!this->empty()); - std::pop_heap(Container().begin(), Container().end(), this->comp); - T value = std::move(Container().back()); - this->c.pop_back(); + auto& container = this->c; + std::pop_heap(container.begin(), container.end(), this->comp); + T value = std::move(container.back()); + container.pop_back(); return value; } |