Go to the documentation of this file.
45 #ifndef ABSL_CONTAINER_INTERNAL_HASH_FUNCTION_DEFAULTS_H_
46 #define ABSL_CONTAINER_INTERNAL_HASH_FUNCTION_DEFAULTS_H_
52 #include <type_traits>
54 #include "absl/base/config.h"
55 #include "absl/hash/hash.h"
56 #include "absl/strings/cord.h"
57 #include "absl/strings/string_view.h"
61 namespace container_internal {
64 template <
class T,
class E =
void>
67 using Eq = std::equal_to<T>;
122 template <
class A,
class B>
124 return HashEq::ToPtr(
a) == HashEq::ToPtr(
b);
130 template <
class U,
class D>
131 static const T*
ToPtr(
const std::unique_ptr<U, D>&
ptr) {
140 template <
class T,
class D>
163 #endif // ABSL_CONTAINER_INTERNAL_HASH_FUNCTION_DEFAULTS_H_
size_t operator()(const U &ptr) const
#define ABSL_NAMESPACE_END
#define T(upbtypeconst, upbtype, ctype, default_value)
static const T * ToPtr(const std::unique_ptr< U, D > &ptr)
#define ABSL_NAMESPACE_BEGIN
size_t operator()(absl::string_view v) const
internal::EqMatcher< T > Eq(T x)
bool operator()(const A &a, const B &b) const
bool operator()(absl::string_view lhs, const absl::Cord &rhs) const
static const T * ToPtr(const std::shared_ptr< U > &ptr)
size_t operator()(const absl::Cord &v) const
static const T * ToPtr(const T *ptr)
bool operator()(const absl::Cord &lhs, const absl::Cord &rhs) const
typename container_internal::HashEq< T >::Hash hash_default_hash
typename container_internal::HashEq< T >::Eq hash_default_eq
static bool StringEq(Span< const uint8_t > a, const char *b)
bool operator()(const absl::Cord &lhs, absl::string_view rhs) const
bool operator()(absl::string_view lhs, absl::string_view rhs) const
absl::hash_internal::Hash< T > Hash
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:00