Searched refs:can_hash (Results 1 – 2 of 2) sorted by relevance
/external/libcxx/test/support/ |
D | poisoned_hash_helper.hpp | 123 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/llvm-project/libcxx/test/support/ |
D | poisoned_hash_helper.h | 122 constexpr bool can_hash(int) { in can_hash() function 125 template <class> constexpr bool can_hash(long) { return false; } in can_hash() function 126 template <class T> constexpr bool can_hash() { return can_hash<T>(0); } in can_hash() function 149 static_assert(can_hash<Hash(Key&)>(), ""); in test_hash_enabled() 150 static_assert(can_hash<Hash(Key const&)>(), ""); in test_hash_enabled() 151 static_assert(can_hash<Hash(Key&&)>(), ""); in test_hash_enabled() 152 static_assert(can_hash<Hash const&(Key&)>(), ""); in test_hash_enabled() 153 static_assert(can_hash<Hash const&(Key const&)>(), ""); in test_hash_enabled() 154 static_assert(can_hash<Hash const&(Key&&)>(), ""); in test_hash_enabled() 156 static_assert(can_hash<Hash(ConvertibleToSimple<Key>&)>(), ""); in test_hash_enabled() [all …]
|