A hash function that hashes keyType to uint32_t. When SSE4.2 support is found, use sse4.2 instructions, otherwise use default hash function std::hash. More...
#include <hash.h>
Public Member Functions | |
void | setMaskSeed (uint32_t _mask, uint32_t _seed) |
set bitmask and seed | |
template<class T = keyType> | |
std::enable_if < std::is_integral< T >::value, uint32_t >::type | operator() (const keyType &k0) const |
template<class T = keyType> | |
std::enable_if <!std::is_integral< T >::value, uint32_t >::type | operator() (const keyType &k0) const |
Public Attributes | |
uint32_t | mask |
a bitmask for the return value. return value must be within [0..mask] | |
uint32_t | s |
hash seed. | |
A hash function that hashes keyType to uint32_t. When SSE4.2 support is found, use sse4.2 instructions, otherwise use default hash function std::hash.