diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-08-23 11:26:50 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-08-23 11:26:50 +0300 |
commit | d1147290456ee39303d010ba69ba3972162215f3 (patch) | |
tree | e98ec5a86e632f4a7a459ee5d40292b29e85a756 /util/generic/map.h | |
parent | a5727ca206c76fd6cd354838aac0f82cf08cc110 (diff) | |
download | ydb-d1147290456ee39303d010ba69ba3972162215f3.tar.gz |
Do not override contains() method which is present is STL
Diffstat (limited to 'util/generic/map.h')
-rw-r--r-- | util/generic/map.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/util/generic/map.h b/util/generic/map.h index b5001b56c0..13ff5cae7c 100644 --- a/util/generic/map.h +++ b/util/generic/map.h @@ -21,10 +21,6 @@ public: inline explicit operator bool() const noexcept { return !this->empty(); } - - inline bool contains(const K& key) const { - return this->find(key) != this->end(); - } }; template <class K, class V, class Less, class A> @@ -37,8 +33,4 @@ public: inline explicit operator bool() const noexcept { return !this->empty(); } - - inline bool contains(const K& key) const { - return this->find(key) != this->end(); - } }; |