aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic
diff options
context:
space:
mode:
authoraprudaev <aprudaev@yandex-team.ru>2022-02-10 16:49:58 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:58 +0300
commit29e66fe2ab37743577f88e6ab770defc4e6c1002 (patch)
tree332323481b37f79cf521451582f724fb13a7143a /util/generic
parent66f1a2f0600877a21fcc76f83c52904a58425f78 (diff)
downloadydb-29e66fe2ab37743577f88e6ab770defc4e6c1002.tar.gz
Restoring authorship annotation for <aprudaev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r--util/generic/hash.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h
index e46db21fa9..bd99c10dce 100644
--- a/util/generic/hash.h
+++ b/util/generic/hash.h
@@ -1180,7 +1180,7 @@ template <class OtherKey>
typename THashTable<V, K, HF, Ex, Eq, A>::size_type THashTable<V, K, HF, Ex, Eq, A>::erase_one(const OtherKey& key) {
const size_type n = bkt_num_key(key);
node* first = buckets[n];
-
+
if (first) {
node* cur = first;
node* next = cur->next;
@@ -1201,11 +1201,11 @@ typename THashTable<V, K, HF, Ex, Eq, A>::size_type THashTable<V, K, HF, Ex, Eq,
delete_node(first);
return 1;
}
- }
+ }
return 0;
-}
-
-template <class V, class K, class HF, class Ex, class Eq, class A>
+}
+
+template <class V, class K, class HF, class Ex, class Eq, class A>
void THashTable<V, K, HF, Ex, Eq, A>::erase(const iterator& it) {
if (node* const p = it.cur) {
const size_type n = bkt_num(p->val);