diff options
author | a-square <a-square@yandex-team.ru> | 2022-02-10 16:50:24 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:24 +0300 |
commit | a01c1f7b71b4422f01b11d9ea45bfd88e228c968 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/str_stl.h | |
parent | 34f3f9bd7972f67d913075206081554a3e39a0de (diff) | |
download | ydb-a01c1f7b71b4422f01b11d9ea45bfd88e228c968.tar.gz |
Restoring authorship annotation for <a-square@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/str_stl.h')
-rw-r--r-- | util/str_stl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/str_stl.h b/util/str_stl.h index f5c9d732ca..f1e137181d 100644 --- a/util/str_stl.h +++ b/util/str_stl.h @@ -168,10 +168,10 @@ namespace NHashPrivate { struct TPairHash<TFirst, TSecond, true> { template <class T> inline size_t operator()(const T& pair) const { - // maps have TFirst = const TFoo, which would make for an undefined specialization - using TFirstClean = std::remove_cv_t<TFirst>; - using TSecondClean = std::remove_cv_t<TSecond>; - return CombineHashes(THash<TFirstClean>()(pair.first), THash<TSecondClean>()(pair.second)); + // maps have TFirst = const TFoo, which would make for an undefined specialization + using TFirstClean = std::remove_cv_t<TFirst>; + using TSecondClean = std::remove_cv_t<TSecond>; + return CombineHashes(THash<TFirstClean>()(pair.first), THash<TSecondClean>()(pair.second)); } }; } |