diff options
author | aprudaev <[email protected]> | 2022-02-10 16:49:58 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:58 +0300 |
commit | 29e66fe2ab37743577f88e6ab770defc4e6c1002 (patch) | |
tree | 332323481b37f79cf521451582f724fb13a7143a /util/generic | |
parent | 66f1a2f0600877a21fcc76f83c52904a58425f78 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r-- | util/generic/hash.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h index e46db21fa97..bd99c10dcef 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); |