diff options
author | mowgli <mowgli@yandex-team.ru> | 2022-02-10 16:49:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:25 +0300 |
commit | 56c39b3cf908e7202b1f7551a1653681e8015607 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/queue.h | |
parent | 89afbbe4ca0e02e386dd4df08f7945f190dc1b84 (diff) | |
download | ydb-56c39b3cf908e7202b1f7551a1653681e8015607.tar.gz |
Restoring authorship annotation for <mowgli@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/queue.h')
-rw-r--r-- | util/generic/queue.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/queue.h b/util/generic/queue.h index 570d8d915d9..f5959f68f28 100644 --- a/util/generic/queue.h +++ b/util/generic/queue.h @@ -16,10 +16,10 @@ class TQueue: public std::queue<T, S> { public: using TBase::TBase; - inline explicit operator bool() const noexcept { - return !this->empty(); - } - + inline explicit operator bool() const noexcept { + return !this->empty(); + } + inline void clear() { this->c.clear(); } @@ -40,10 +40,10 @@ class TPriorityQueue: public std::priority_queue<T, S, C> { public: using TBase::TBase; - inline explicit operator bool() const noexcept { - return !this->empty(); - } - + inline explicit operator bool() const noexcept { + return !this->empty(); + } + inline void clear() { this->c.clear(); } |