|
dice-hash
Hash function for stl types and container
|
Helper struct for defining the hash for custom structs. More...
#include <DiceHash.hpp>
Classes | |
| struct | AlwaysFalse |
| Helper type. More... | |
Static Public Member Functions | |
| static std::size_t | dice_hash (T const &) noexcept |
| Default implementation of the dice_hash function. | |
Helper struct for defining the hash for custom structs.
Because of partial specialization problems with functions, this struct must be specialized to define the hash for a custom type.
| Policy | The policy to use. |
| T | The custom type. |
|
inlinestaticnoexcept |
Default implementation of the dice_hash function.
It will simply not compile. For every type there should be an specific overload.
| T | Type of the value to hash. |