aboutsummaryrefslogtreecommitdiffstats
path: root/util/str_stl.h
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:30 +0300
commit4b839d0704ee9be1dabb0310a1f03af24963637b (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/str_stl.h
parentf773626848a7c7456803654292e716b83d69cc12 (diff)
downloadydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/str_stl.h')
-rw-r--r--util/str_stl.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/str_stl.h b/util/str_stl.h
index c55239ab15..f1e137181d 100644
--- a/util/str_stl.h
+++ b/util/str_stl.h
@@ -26,7 +26,7 @@ namespace std {
bool operator()(const char* x, const TStringBuf y) const {
return strlen(x) == y.size() && memcmp(x, y.data(), y.size()) == 0;
}
- using is_transparent = void;
+ using is_transparent = void;
};
}
@@ -58,7 +58,7 @@ namespace NHashPrivate {
}
template <class T>
-struct hash: public NHashPrivate::THashHelper<T, std::is_scalar<T>::value && !std::is_integral<T>::value> {
+struct hash: public NHashPrivate::THashHelper<T, std::is_scalar<T>::value && !std::is_integral<T>::value> {
};
template <typename T>
@@ -146,7 +146,7 @@ struct THash: public ::hash<T> {
};
namespace NHashPrivate {
- template <class TFirst, class TSecond, bool IsEmpty = std::is_empty<THash<TFirst>>::value&& std::is_empty<THash<TSecond>>::value>
+ template <class TFirst, class TSecond, bool IsEmpty = std::is_empty<THash<TFirst>>::value&& std::is_empty<THash<TSecond>>::value>
struct TPairHash {
private:
THash<TFirst> FirstHash;
@@ -186,12 +186,12 @@ struct TEqualTo: public std::equal_to<T> {
template <>
struct TEqualTo<TString>: public TEqualTo<TStringBuf> {
- using is_transparent = void;
+ using is_transparent = void;
};
template <>
struct TEqualTo<TUtf16String>: public TEqualTo<TWtringBuf> {
- using is_transparent = void;
+ using is_transparent = void;
};
template <>
@@ -214,7 +214,7 @@ struct TCIEqualTo {
template <>
struct TCIEqualTo<const char*> {
- inline bool operator()(const char* a, const char* b) const {
+ inline bool operator()(const char* a, const char* b) const {
return stricmp(a, b) == 0;
}
};
@@ -239,12 +239,12 @@ struct TLess: public std::less<T> {
template <>
struct TLess<TString>: public TLess<TStringBuf> {
- using is_transparent = void;
+ using is_transparent = void;
};
template <>
struct TLess<TUtf16String>: public TLess<TWtringBuf> {
- using is_transparent = void;
+ using is_transparent = void;
};
template <>
@@ -258,12 +258,12 @@ struct TGreater: public std::greater<T> {
template <>
struct TGreater<TString>: public TGreater<TStringBuf> {
- using is_transparent = void;
+ using is_transparent = void;
};
template <>
struct TGreater<TUtf16String>: public TGreater<TWtringBuf> {
- using is_transparent = void;
+ using is_transparent = void;
};
template <>