dice-hash
Hash function for stl types and container
|
Wrapper class for the dice::hash::dice_hash function. More...
#include <DiceHash.hpp>
Public Member Functions | |
std::size_t | operator() (T const &t) const noexcept |
Overloaded operator to calculate a hash. | |
Static Public Member Functions | |
static constexpr bool | is_faulty (std::size_t to_check) noexcept |
Function to check if a hash is equal to an error value. | |
Wrapper class for the dice::hash::dice_hash function.
It is a typical hash interface.
T | The type to define the hash for. |
Policy | The Policy defines how the hash works on a basic level. |
|
inlinestaticconstexprnoexcept |
Function to check if a hash is equal to an error value.
Simple wrapper for equality checking of the Policy error value.
to_check | The hash value to check. |
|
inlinenoexcept |
Overloaded operator to calculate a hash.
Simply calls the dice_hash function for the specified type.
t | The value to calculate the hash of. |