dice-hash
Hash function for stl types and container
Loading...
Searching...
No Matches
Classes | Typedefs | Variables
dice::hash Namespace Reference

Home of the DiceHash. More...

Classes

struct  dice_hash_overload
 Helper struct for defining the hash for custom structs. More...
 
class  dice_hash_templates
 Class which contains all dice_hash functions. More...
 
struct  DiceHash
 Wrapper class for the dice::hash::dice_hash function. More...
 
struct  is_ordered_container
 Typetrait for checking if a type T is an ordered container. More...
 
struct  is_ordered_container< std::map< Key, T, Compare, Allocator > >
 Specialization for std::map. More...
 
struct  is_ordered_container< std::set< Key, Compare, Allocator > >
 Specialization for std::set. More...
 
struct  is_unordered_container
 Typetrait for checking if a type T is an unordered container. More...
 
struct  is_unordered_container< std::unordered_map< Key, T, Hash, KeyEqual, Allocator > >
 Specialization for std::unordered_map. More...
 
struct  is_unordered_container< std::unordered_set< Key, Hash, KeyEqual, Allocator > >
 Specialization for std::unordered_set. More...
 

Typedefs

template<typename T >
using DiceHashMartinus = DiceHash< T, Policies::Martinus >
 
template<typename T >
using DiceHashxxh3 = DiceHash< T, Policies::xxh3 >
 
template<typename T >
using DiceHashwyhash = DiceHash< T, Policies::wyhash >
 

Variables

template<typename T >
constexpr bool is_unordered_container_v = is_unordered_container<T>::value
 Helper definition.
 
template<typename T >
constexpr bool is_ordered_container_v = is_ordered_container<T>::value
 Helper definition.
 

Detailed Description

Home of the DiceHash.

Variable Documentation

◆ is_ordered_container_v

template<typename T >
constexpr bool dice::hash::is_ordered_container_v = is_ordered_container<T>::value
constexpr

Helper definition.

Enables the *_v usage of is_ordered_container.

Template Parameters
TThe type to check.

◆ is_unordered_container_v

template<typename T >
constexpr bool dice::hash::is_unordered_container_v = is_unordered_container<T>::value
constexpr

Helper definition.

Enables the *_v usage of is_unordered_container.

Template Parameters
TThe type to check.