diff options
author | leo <leo@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/str_stl.h | |
parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
download | ydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz |
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/str_stl.h')
-rw-r--r-- | util/str_stl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/str_stl.h b/util/str_stl.h index f1e137181d..3e7f61e551 100644 --- a/util/str_stl.h +++ b/util/str_stl.h @@ -59,8 +59,8 @@ namespace NHashPrivate { template <class T> struct hash: public NHashPrivate::THashHelper<T, std::is_scalar<T>::value && !std::is_integral<T>::value> { -}; - +}; + template <typename T> struct hash<const T*> { inline size_t operator()(const T* t) const noexcept { @@ -76,11 +76,11 @@ template <> struct hash<const char*>: ::NHashPrivate::TStringHash<char> { }; -template <> +template <> struct THash<TStringBuf>: ::NHashPrivate::TStringHash<char> { }; -template <> +template <> struct hash<TString>: ::NHashPrivate::TStringHash<char> { }; @@ -236,7 +236,7 @@ struct TCIEqualTo<TString> { template <class T> struct TLess: public std::less<T> { }; - + template <> struct TLess<TString>: public TLess<TStringBuf> { using is_transparent = void; |