aboutsummaryrefslogtreecommitdiffstats
path: root/util/str_stl.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/str_stl.h
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/str_stl.h')
-rw-r--r--util/str_stl.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/util/str_stl.h b/util/str_stl.h
index f1e137181d..d91ef1a7cb 100644
--- a/util/str_stl.h
+++ b/util/str_stl.h
@@ -46,15 +46,15 @@ namespace NHashPrivate {
return NumericHash(t);
}
};
-
- template <typename C>
- struct TStringHash {
- using is_transparent = void;
-
- inline size_t operator()(const TBasicStringBuf<C> s) const noexcept {
+
+ template <typename C>
+ struct TStringHash {
+ using is_transparent = void;
+
+ inline size_t operator()(const TBasicStringBuf<C> s) const noexcept {
return NHashPrivate::ComputeStringHash(s.data(), s.size());
- }
- };
+ }
+ };
}
template <class T>
@@ -88,18 +88,18 @@ template <>
struct hash<TUtf16String>: ::NHashPrivate::TStringHash<wchar16> {
};
-template <>
+template <>
struct THash<TWtringBuf>: ::NHashPrivate::TStringHash<wchar16> {
-};
+};
-template <>
+template <>
struct hash<TUtf32String>: ::NHashPrivate::TStringHash<wchar32> {
-};
-
-template <>
+};
+
+template <>
struct THash<TUtf32StringBuf>: ::NHashPrivate::TStringHash<wchar32> {
-};
-
+};
+
template <class C, class T, class A>
struct hash<std::basic_string<C, T, A>>: ::NHashPrivate::TStringHash<C> {
};
@@ -221,7 +221,7 @@ struct TCIEqualTo<const char*> {
template <>
struct TCIEqualTo<TStringBuf> {
- inline bool operator()(const TStringBuf a, const TStringBuf b) const {
+ inline bool operator()(const TStringBuf a, const TStringBuf b) const {
return a.size() == b.size() && strnicmp(a.data(), b.data(), a.size()) == 0;
}
};