|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Primary hash functor used internally by dft_hash_fct / snd_hash_fct.
More...
#include <hash-fct.H>
Public Member Functions | |
| size_t | operator() (const T &key) const noexcept |
| size_t | operator() (const T &key, std::uint32_t seed) const noexcept |
Primary hash functor used internally by dft_hash_fct / snd_hash_fct.
Resolution order (in priority):
aleph_hash_value(key) if found in T's namespace. This is the semantic path for user-defined types.wyhash_hash for trivially-copyable, non-pointer T. This is the default path for scalars and POD structs.static_assert for any other T, with an actionable message.Users may also fully specialize Aleph_Hash<MyType> as an alternative to ADL.
| T | Key type. |
Definition at line 889 of file hash-fct.H.
|
inlinenoexcept |
Definition at line 907 of file hash-fct.H.
References Aleph::aleph_hash_value(), and Aleph::wyhash_hash().
|
inlinenoexcept |
Definition at line 915 of file hash-fct.H.
References Aleph::aleph_hash_value(), h, Aleph::hash_combine(), seed, and Aleph::wyhash_hash().