Home
last modified time | relevance | path

Searched refs:can_hash (Results 1 – 2 of 2) sorted by relevance

/external/libcxx/test/support/
Dpoisoned_hash_helper.hpp123 constexpr bool can_hash(int) { in can_hash() function
126 template <class> constexpr bool can_hash(long) { return false; } in can_hash() function
127 template <class T> constexpr bool can_hash() { return can_hash<T>(0); } in can_hash() function
150 static_assert(can_hash<Hash(Key&)>(), ""); in test_hash_enabled()
151 static_assert(can_hash<Hash(Key const&)>(), ""); in test_hash_enabled()
152 static_assert(can_hash<Hash(Key&&)>(), ""); in test_hash_enabled()
153 static_assert(can_hash<Hash const&(Key&)>(), ""); in test_hash_enabled()
154 static_assert(can_hash<Hash const&(Key const&)>(), ""); in test_hash_enabled()
155 static_assert(can_hash<Hash const&(Key&&)>(), ""); in test_hash_enabled()
157 static_assert(can_hash<Hash(ConvertibleToSimple<Key>&)>(), ""); in test_hash_enabled()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/support/
Dpoisoned_hash_helper.h120 constexpr bool can_hash(int) { in can_hash() function
124 constexpr bool can_hash(long) { in can_hash() function
128 constexpr bool can_hash() { in can_hash() function
129 return can_hash<Hasher, Key>(0); in can_hash()
152 static_assert(can_hash<Hash, Key&>(), ""); in test_hash_enabled()
153 static_assert(can_hash<Hash, Key const&>(), ""); in test_hash_enabled()
154 static_assert(can_hash<Hash, Key&&>(), ""); in test_hash_enabled()
155 static_assert(can_hash<Hash const, Key&>(), ""); in test_hash_enabled()
156 static_assert(can_hash<Hash const, Key const&>(), ""); in test_hash_enabled()
157 static_assert(can_hash<Hash const, Key&&>(), ""); in test_hash_enabled()
[all …]