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 | 89afbbe4ca0e02e386dd4df08f7945f190dc1b84 (patch) | |
tree | c4772201af6215d48734691b8796e4cfc77c2ac8 /util/generic/map.h | |
parent | 7510cec1516d17cbc8d7749974e36aa45f547a26 (diff) | |
download | ydb-89afbbe4ca0e02e386dd4df08f7945f190dc1b84.tar.gz |
Restoring authorship annotation for <mowgli@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/map.h')
-rw-r--r-- | util/generic/map.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/map.h b/util/generic/map.h index b5001b56c0..56449b442a 100644 --- a/util/generic/map.h +++ b/util/generic/map.h @@ -18,10 +18,10 @@ class TMap: public std::map<K, V, Less, TReboundAllocator<A, std::pair<const K, public: using TBase::TBase; - inline explicit operator bool() const noexcept { - return !this->empty(); - } - + inline explicit operator bool() const noexcept { + return !this->empty(); + } + inline bool contains(const K& key) const { return this->find(key) != this->end(); } @@ -34,9 +34,9 @@ class TMultiMap: public std::multimap<K, V, Less, TReboundAllocator<A, std::pair public: using TBase::TBase; - inline explicit operator bool() const noexcept { - return !this->empty(); - } + inline explicit operator bool() const noexcept { + return !this->empty(); + } inline bool contains(const K& key) const { return this->find(key) != this->end(); |