aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/str_map/str_map.h
diff options
context:
space:
mode:
authorspacelord <spacelord@yandex-team.ru>2022-02-10 16:48:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:15 +0300
commita0c6d9ad0cf6b94c527a15da147eb24335281b6d (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/containers/str_map/str_map.h
parent16747e4f77455cca4932df21eb76f12cb0a97a5c (diff)
downloadydb-a0c6d9ad0cf6b94c527a15da147eb24335281b6d.tar.gz
Restoring authorship annotation for <spacelord@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/str_map/str_map.h')
-rw-r--r--library/cpp/containers/str_map/str_map.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/containers/str_map/str_map.h b/library/cpp/containers/str_map/str_map.h
index b3479867dd..31b00d1b99 100644
--- a/library/cpp/containers/str_map/str_map.h
+++ b/library/cpp/containers/str_map/str_map.h
@@ -41,11 +41,11 @@ protected:
public:
using yh = THashMap<const char*, T, HashFcn, EqualTo, Alloc>;
- using iterator = typename yh::iterator;
- using const_iterator = typename yh::const_iterator;
- using mapped_type = typename yh::mapped_type;
- using size_type = typename yh::size_type;
- using pool_size_type = typename yh::size_type;
+ using iterator = typename yh::iterator;
+ using const_iterator = typename yh::const_iterator;
+ using mapped_type = typename yh::mapped_type;
+ using size_type = typename yh::size_type;
+ using pool_size_type = typename yh::size_type;
string_hash() {
pool.Reserve(HASH_SIZE_DEFAULT * AVERAGEWORD_BUF); // reserve here
}
@@ -107,12 +107,12 @@ protected:
public:
using yh = THashMap<const C*, T, HashFcn, EqualTo>;
- using iterator = typename yh::iterator;
- using const_iterator = typename yh::const_iterator;
- using mapped_type = typename yh::mapped_type;
- using size_type = typename yh::size_type;
- using key_type = typename yh::key_type;
- using value_type = typename yh::value_type;
+ using iterator = typename yh::iterator;
+ using const_iterator = typename yh::const_iterator;
+ using mapped_type = typename yh::mapped_type;
+ using size_type = typename yh::size_type;
+ using key_type = typename yh::key_type;
+ using value_type = typename yh::value_type;
THashWithSegmentedPoolForKeys(size_type hash_size = HASH_SIZE_DEFAULT, size_t segsize = HASH_SIZE_DEFAULT * AVERAGEWORD_BUF, bool afs = false)
: yh(hash_size)
@@ -178,13 +178,13 @@ public:
template <class T, class HashFcn, class EqualTo>
class segmented_string_hash: public THashWithSegmentedPoolForKeys<char, T, HashFcn, EqualTo> {
public:
- using Base = THashWithSegmentedPoolForKeys<char, T, HashFcn, EqualTo>;
- using iterator = typename Base::iterator;
- using const_iterator = typename Base::const_iterator;
- using mapped_type = typename Base::mapped_type;
- using size_type = typename Base::size_type;
- using key_type = typename Base::key_type;
- using value_type = typename Base::value_type;
+ using Base = THashWithSegmentedPoolForKeys<char, T, HashFcn, EqualTo>;
+ using iterator = typename Base::iterator;
+ using const_iterator = typename Base::const_iterator;
+ using mapped_type = typename Base::mapped_type;
+ using size_type = typename Base::size_type;
+ using key_type = typename Base::key_type;
+ using value_type = typename Base::value_type;
public:
segmented_string_hash(size_type hash_size = HASH_SIZE_DEFAULT, size_t segsize = HASH_SIZE_DEFAULT * AVERAGEWORD_BUF, bool afs = false)