mpqc::utility::hash Struct Reference

Documentation

computes hash values for containers and std::pair

Note
replaces boost::hash for standard containers; std:hash is used to hash element values

Public Member Functions

 hash ()=default
 
 hash (const hash &)=default
 
 hash (hash &&)=default
 
hashoperator= (const hash &)=default
 
hashoperator= (hash &&)=default
 
 ~hash ()=default
 
template<typename ConstIterRange >
std::enable_if_t< mpqc::detail::is_const_iterator_range< ConstIterRange >::value, std::size_t > operator() (const ConstIterRange &v) const
 
template<typename T1 , typename T2 >
std::size_t operator() (const std::pair< T1, T2 > &v) const
 

Constructor & Destructor Documentation

◆ hash() [1/3]

mpqc::utility::hash::hash ( )
default

◆ hash() [2/3]

mpqc::utility::hash::hash ( const hash )
default

◆ hash() [3/3]

mpqc::utility::hash::hash ( hash &&  )
default

◆ ~hash()

mpqc::utility::hash::~hash ( )
default

Member Function Documentation

◆ operator()() [1/2]

template<typename ConstIterRange >
std::enable_if_t<mpqc::detail::is_const_iterator_range<ConstIterRange>::value,std::size_t> mpqc::utility::hash::operator() ( const ConstIterRange &  v) const
inline
Template Parameters
ConstIterRangeany type for which {cbegin,cend}(ConstIterRange&const) are well-defined

◆ operator()() [2/2]

template<typename T1 , typename T2 >
std::size_t mpqc::utility::hash::operator() ( const std::pair< T1, T2 > &  v) const
inline

◆ operator=() [1/2]

hash& mpqc::utility::hash::operator= ( const hash )
default

◆ operator=() [2/2]

hash& mpqc::utility::hash::operator= ( hash &&  )
default

The documentation for this struct was generated from the following file: