koutil
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Concepts
koutil::container::is_hash Concept Reference

Concept to check if a type is a valid hash function for a given Key type. More...

#include <hash_array.h>

Concept definition

template<typename T, typename Key>
concept koutil::container::is_hash = requires(T hash, const Key& key) {
requires std::is_trivially_constructible_v<T>;
{ hash(key) } -> std::same_as<std::size_t>;
}
Concept to check if a type is a valid hash function for a given Key type.
Definition hash_array.h:22

Detailed Description

Concept to check if a type is a valid hash function for a given Key type.

Template Parameters
TThe hash function type.
KeyThe key type.