aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash.h
diff options
context:
space:
mode:
authorpozhilov <pozhilov@yandex-team.ru>2022-02-10 16:49:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:27 +0300
commit23bf1d16dddf213a6aa8e8d5c8621e1242a1f118 (patch)
treeed030ff443eb83431f11e53b6460b1b73d035412 /util/generic/hash.h
parent7156b3713e77ce36387436e5558320917698b7a2 (diff)
downloadydb-23bf1d16dddf213a6aa8e8d5c8621e1242a1f118.tar.gz
Restoring authorship annotation for <pozhilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/hash.h')
-rw-r--r--util/generic/hash.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/generic/hash.h b/util/generic/hash.h
index e46db21fa9..30d00685e8 100644
--- a/util/generic/hash.h
+++ b/util/generic/hash.h
@@ -1390,12 +1390,12 @@ void THashTable<V, K, HF, Ex, Eq, A>::copy_from_dynamic(const THashTable& ht) {
#endif /* __STL_USE_EXCEPTIONS */
}
-namespace NPrivate {
+namespace NPrivate {
template <class Key>
inline TString MapKeyToString(const Key&) {
return TypeName<Key>();
- }
-
+ }
+
TString MapKeyToString(TStringBuf key);
TString MapKeyToString(unsigned short key);
TString MapKeyToString(short key);
@@ -1405,22 +1405,22 @@ namespace NPrivate {
TString MapKeyToString(long key);
TString MapKeyToString(unsigned long long key);
TString MapKeyToString(long long key);
-
+
inline TString MapKeyToString(const TString& key) {
- return MapKeyToString(TStringBuf(key));
- }
-
+ return MapKeyToString(TStringBuf(key));
+ }
+
inline TString MapKeyToString(const char* key) {
- return MapKeyToString(TStringBuf(key));
- }
-
+ return MapKeyToString(TStringBuf(key));
+ }
+
inline TString MapKeyToString(char* key) {
- return MapKeyToString(TStringBuf(key));
- }
+ return MapKeyToString(TStringBuf(key));
+ }
[[noreturn]] void ThrowKeyNotFoundInHashTableException(const TStringBuf keyRepresentation);
}
-
+
template <class Key, class T, class HashFcn, class EqualKey, class Alloc>
class THashMap: public TMapOps<THashMap<Key, T, HashFcn, EqualKey, Alloc>> {
private: