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 | |
parent | a5727ca206c76fd6cd354838aac0f82cf08cc110 (diff) | |
download | ydb-d1147290456ee39303d010ba69ba3972162215f3.tar.gz |
Do not override contains() method which is present is STL
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/map.h | 8 | ||||
-rw-r--r-- | util/generic/set.h | 10 |
2 files changed, 0 insertions, 18 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(); - } }; diff --git a/util/generic/set.h b/util/generic/set.h index 4c437ca26f..418928f94c 100644 --- a/util/generic/set.h +++ b/util/generic/set.h @@ -18,11 +18,6 @@ public: inline explicit operator bool() const noexcept { return !this->empty(); } - - template <class TheKey> - inline bool contains(const TheKey& key) const { - return this->find(key) != this->end(); - } }; template <class K, class L, class A> @@ -34,9 +29,4 @@ public: inline explicit operator bool() const noexcept { return !this->empty(); } - - template <class TheKey> - inline bool contains(const TheKey& key) const { - return this->find(key) != this->end(); - } }; |