Searched refs:can_hash (Results 1 – 1 of 1) sorted by relevance
123 constexpr bool can_hash(int) { in can_hash() function126 template <class> constexpr bool can_hash(long) { return false; } in can_hash() function127 template <class T> constexpr bool can_hash() { return can_hash<T>(0); } in can_hash() function150 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 …]