Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::HashableByADL Concept Reference

Concept: T provides a semantic hash via ADL. More...

#include <hash-fct.H>

Concept definition

template<typename T>
concept Aleph::HashableByADL = requires(const T & t)
{
{ aleph_hash_value(t) } -> std::convertible_to<size_t>;
}
Concept: T provides a semantic hash via ADL.
Definition hash-fct.H:869
std::decay_t< typename HeadC::Item_Type > T
Definition ah-zip.H:105
size_t aleph_hash_value(const AdversarialTranspositionKey< StateKey > &key) noexcept
Definition Negamax.H:134

Detailed Description

Concept: T provides a semantic hash via ADL.

To opt in, define in T's own namespace:

inline size_t aleph_hash_value(const MyType & key) noexcept { ... }

This is the preferred way to add hashing for user-defined types.

Definition at line 869 of file hash-fct.H.