koutil
Loading...
Searching...
No Matches
koutil::container::is_key_adapter Concept Reference

Concept to check if a type is a valid key adapter. More...

#include <hash_array.h>

Concept definition

template<typename T, typename Key, typename KeyID>
concept koutil::container::is_key_adapter = requires(const Key& key, T adapter, const KeyID& index) {
requires std::move_constructible<T> && std::is_trivially_copy_constructible_v<T>;
{ adapter.eql(key, index) } -> std::same_as<bool>;
}
Concept to check if a type is a valid key adapter.
Definition hash_array.h:35

Detailed Description

Concept to check if a type is a valid key adapter.

Template Parameters
TThe key adapter type.
KeyThe key type.
KeyIDThe key ID type.