diff options
author | zosimov <zosimov@yandex-team.ru> | 2022-02-10 16:50:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:32 +0300 |
commit | a1d67d6a31f789aa011250c3edce5751c0cadad2 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/hash.h | |
parent | a8f009e06d613c9567eb4c0f461dbed5e0d8092b (diff) | |
download | ydb-a1d67d6a31f789aa011250c3edce5751c0cadad2.tar.gz |
Restoring authorship annotation for <zosimov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash.h')
-rw-r--r-- | util/generic/hash.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h index a950a41180..e46db21fa9 100644 --- a/util/generic/hash.h +++ b/util/generic/hash.h @@ -1736,16 +1736,16 @@ public: template <class Key, class T, class HashFcn, class EqualKey, class Alloc> inline bool operator==(const THashMap<Key, T, HashFcn, EqualKey, Alloc>& hm1, const THashMap<Key, T, HashFcn, EqualKey, Alloc>& hm2) { - if (hm1.size() != hm2.size()) { - return false; - } + if (hm1.size() != hm2.size()) { + return false; + } for (const auto& it1 : hm1) { - auto it2 = hm2.find(it1.first); - if ((it2 == hm2.end()) || !(it1 == *it2)) { - return false; - } - } - return true; + auto it2 = hm2.find(it1.first); + if ((it2 == hm2.end()) || !(it1 == *it2)) { + return false; + } + } + return true; } template <class Key, class T, class HashFcn, class EqualKey, class Alloc> |