aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2022-08-23 11:26:50 +0300
committerthegeorg <thegeorg@yandex-team.com>2022-08-23 11:26:50 +0300
commitd1147290456ee39303d010ba69ba3972162215f3 (patch)
treee98ec5a86e632f4a7a459ee5d40292b29e85a756
parenta5727ca206c76fd6cd354838aac0f82cf08cc110 (diff)
downloadydb-d1147290456ee39303d010ba69ba3972162215f3.tar.gz
Do not override contains() method which is present is STL
-rw-r--r--util/generic/map.h8
-rw-r--r--util/generic/set.h10
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();
- }
};