diff options
author | pavelgur <pavelgur@yandex-team.ru> | 2022-02-10 16:50:19 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:19 +0300 |
commit | 173c6a0fa7f439b2c207c2f258e52ccb4ac181cf (patch) | |
tree | ccc1431399e20197a8533f3d4bd0eb9a4bb8db62 /util/generic/hash.h | |
parent | da16e7702d9b0a8a42761ad877f102ef6aa85ec0 (diff) | |
download | ydb-173c6a0fa7f439b2c207c2f258e52ccb4ac181cf.tar.gz |
Restoring authorship annotation for <pavelgur@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/hash.h')
-rw-r--r-- | util/generic/hash.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h index e46db21fa9..cb6672cf62 100644 --- a/util/generic/hash.h +++ b/util/generic/hash.h @@ -1461,7 +1461,7 @@ public: } template <class TAllocParam> explicit THashMap(TAllocParam* allocParam, size_type n = 0) - : rep(n, hasher(), key_equal(), allocParam) + : rep(n, hasher(), key_equal(), allocParam) { } explicit THashMap(size_type n) @@ -1509,13 +1509,13 @@ public: } THashMap(const std::initializer_list<std::pair<Key, T>>& list) - : rep(list.size(), hasher(), key_equal()) - { - for (const auto& v : list) { - rep.insert_unique_noresize(v); - } - } - + : rep(list.size(), hasher(), key_equal()) + { + for (const auto& v : list) { + rep.insert_unique_noresize(v); + } + } + // THashMap has implicit copy/move constructors and copy-/move-assignment operators // because its implementation is backed by THashTable. // See hash_ut.cpp @@ -1579,10 +1579,10 @@ public: return rep.insert_unique_noresize(obj); } - template <typename... Args> - std::pair<iterator, bool> emplace_noresize(Args&&... args) { - return rep.emplace_unique_noresize(std::forward<Args>(args)...); - } + template <typename... Args> + std::pair<iterator, bool> emplace_noresize(Args&&... args) { + return rep.emplace_unique_noresize(std::forward<Args>(args)...); + } template <class TheObj> iterator insert_direct(const TheObj& obj, const insert_ctx& ins) { |