aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash_set.h
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /util/generic/hash_set.h
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/hash_set.h')
-rw-r--r--util/generic/hash_set.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/generic/hash_set.h b/util/generic/hash_set.h
index e8088cf23b..f7cb6839c8 100644
--- a/util/generic/hash_set.h
+++ b/util/generic/hash_set.h
@@ -200,14 +200,14 @@ public:
}
template <class TheKey>
- bool contains(const TheKey& key) const {
- return rep.find(key) != rep.end();
- }
- template <class TheKey>
- bool contains(const TheKey& key, insert_ctx& ins) {
- return rep.find_i(key, ins) != rep.end();
- }
-
+ bool contains(const TheKey& key) const {
+ return rep.find(key) != rep.end();
+ }
+ template <class TheKey>
+ bool contains(const TheKey& key, insert_ctx& ins) {
+ return rep.find_i(key, ins) != rep.end();
+ }
+
template <class TKey>
size_type count(const TKey& key) const {
return rep.count(key);
@@ -266,7 +266,7 @@ inline bool operator==(const THashSet<Value, HashFcn, EqualKey, Alloc>& hs1, con
return false;
}
for (const auto& it : hs1) {
- if (!hs2.contains(it)) {
+ if (!hs2.contains(it)) {
return false;
}
}