Go to the documentation of this file.
18 #ifndef ABSL_CONTAINER_INTERNAL_HASH_POLICY_TESTING_H_
19 #define ABSL_CONTAINER_INTERNAL_HASH_POLICY_TESTING_H_
25 #include <type_traits>
29 #include "absl/hash/hash.h"
30 #include "absl/strings/string_view.h"
34 namespace container_internal {
35 namespace hash_testing_internal {
37 template <
class Derived>
52 size_t id()
const {
return id_; }
55 return a.id_ ==
b.id_;
68 static size_t gId = 1;
82 return a.value ==
b.value;
86 return a.value !=
b.value;
99 StatefulTestingHash> {
108 StatefulTestingEqual> {
109 template <
class T,
class U>
117 template <
class T =
int>
138 return a.id_ ==
b.id_;
148 std::pair<typename Map::key_type, typename Map::mapped_type>> {
150 std::vector<std::pair<typename Map::key_type, typename Map::mapped_type>> res;
151 res.reserve(
m.size());
152 for (
const auto&
v :
m) res.emplace_back(get<0>(
v), get<1>(
v));
160 res.reserve(
s.size());
161 for (
const auto&
v :
s) res.emplace_back(
v);
177 #if (defined(__GLIBCXX__) && __GLIBCXX__ <= 20140425 ) || \
178 ( __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9 ))
179 #define ABSL_UNORDERED_SUPPORTS_ALLOC_CTORS 0
181 #define ABSL_UNORDERED_SUPPORTS_ALLOC_CTORS 1
184 #endif // ABSL_CONTAINER_INTERNAL_HASH_POLICY_TESTING_H_
absl::string_view get(const Cont &c)
auto keys(const Set &s) -> std::vector< typename std::decay< typename Set::key_type >::type >
integral_constant< bool, true > true_type
OPENSSL_EXPORT pem_password_cb void * u
friend bool operator!=(const Alloc &a, const Alloc &b)
#define ABSL_NAMESPACE_END
WithId & operator=(WithId &&that)
#define T(upbtypeconst, upbtype, ctype, default_value)
virtual ~NonStandardLayout()
WithId & operator=(const WithId &that)
#define ABSL_NAMESPACE_BEGIN
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
size_t operator()(const T &t) const
Alloc(const Alloc< U > &that)
friend bool operator!=(const WithId &a, const WithId &b)
Alloc & operator=(const Alloc &)=default
friend bool operator==(const WithId &a, const WithId &b)
std::true_type propagate_on_container_swap
NonStandardLayout(std::string s)
friend H AbslHashValue(H h, const NonStandardLayout &v)
friend bool operator==(const Alloc &a, const Alloc &b)
WithId(const WithId &that)
bool operator()(const T &t, const U &u) const
friend bool operator==(const NonStandardLayout &a, const NonStandardLayout &b)
friend bool operator!=(const NonStandardLayout &a, const NonStandardLayout &b)
auto items(const Map &m) -> std::vector< std::pair< typename Map::key_type, typename Map::mapped_type >>
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:00