summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2022-02-10 16:45:08 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:08 +0300
commit4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch)
tree506dac10f5df94fab310584ee51b24fc5a081c22 /contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h
parent2d37894b1b037cf24231090eda8589bbb44fb6fc (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h')
-rw-r--r--contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h b/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h
index 68a18058d1f..477d0c278fc 100644
--- a/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h
+++ b/contrib/restricted/abseil-cpp-tstring/y_absl/container/internal/hash_function_defaults.h
@@ -78,26 +78,26 @@ struct StringHash {
}
};
-struct StringEq {
- using is_transparent = void;
- bool operator()(y_absl::string_view lhs, y_absl::string_view rhs) const {
- return lhs == rhs;
- }
- bool operator()(const y_absl::Cord& lhs, const y_absl::Cord& rhs) const {
- return lhs == rhs;
- }
- bool operator()(const y_absl::Cord& lhs, y_absl::string_view rhs) const {
- return lhs == rhs;
- }
- bool operator()(y_absl::string_view lhs, const y_absl::Cord& rhs) const {
- return lhs == rhs;
- }
-};
-
+struct StringEq {
+ using is_transparent = void;
+ bool operator()(y_absl::string_view lhs, y_absl::string_view rhs) const {
+ return lhs == rhs;
+ }
+ bool operator()(const y_absl::Cord& lhs, const y_absl::Cord& rhs) const {
+ return lhs == rhs;
+ }
+ bool operator()(const y_absl::Cord& lhs, y_absl::string_view rhs) const {
+ return lhs == rhs;
+ }
+ bool operator()(y_absl::string_view lhs, const y_absl::Cord& rhs) const {
+ return lhs == rhs;
+ }
+};
+
// Supports heterogeneous lookup for string-like elements.
struct StringHashEq {
using Hash = StringHash;
- using Eq = StringEq;
+ using Eq = StringEq;
};
template <>