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
commit042dfdfd1388209ce3aa06dca56bd52ec63d40b2 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic
parent29e66fe2ab37743577f88e6ab770defc4e6c1002 (diff)
downloadydb-042dfdfd1388209ce3aa06dca56bd52ec63d40b2.tar.gz
Restoring authorship annotation for <aprudaev@yandex-team.ru>. Commit 2 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 bd99c10dce..e46db21fa9 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);