dice-hash
Hash function for stl types and container
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
Container_trait.hpp File Reference

Home of custom type traits for the diceHash. More...

#include <map>
#include <set>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
Include dependency graph for Container_trait.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dice::hash::is_unordered_container< T >
 Typetrait for checking if a type T is an unordered container. More...
 
struct  dice::hash::is_unordered_container< std::unordered_map< Key, T, Hash, KeyEqual, Allocator > >
 Specialization for std::unordered_map. More...
 
struct  dice::hash::is_unordered_container< std::unordered_set< Key, Hash, KeyEqual, Allocator > >
 Specialization for std::unordered_set. More...
 
struct  dice::hash::is_ordered_container< T >
 Typetrait for checking if a type T is an ordered container. More...
 
struct  dice::hash::is_ordered_container< std::map< Key, T, Compare, Allocator > >
 Specialization for std::map. More...
 
struct  dice::hash::is_ordered_container< std::set< Key, Compare, Allocator > >
 Specialization for std::set. More...
 

Namespaces

namespace  dice::hash
 Home of the DiceHash.
 

Variables

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

Detailed Description

Home of custom type traits for the diceHash.

If you want to add another class to the trait, the safest place to do so is in this file. Why is there no namespace?