libMesh
Classes | Functions
libMesh::boostcopy Namespace Reference

Classes

struct  enable_if_c
 
struct  enable_if_c< false, T >
 

Functions

void hash_combine_impl (std::size_t &seed, std::size_t value)
 
template<typename T >
void hash_combine (std::size_t &seed, const T &value)
 

Function Documentation

◆ hash_combine()

template<typename T >
void libMesh::boostcopy::hash_combine ( std::size_t &  seed,
const T &  value 
)
inline

Definition at line 34 of file hashing.h.

References hash_combine_impl(), and value.

Referenced by libMesh::hash::operator()(), std::hash< libMesh::Point >::operator()(), and std::hash< libMesh::FEType >::operator()().

35 {
36  using std::hash;
37  hash_combine_impl(seed, hash<T>{}(value));
38 }
void hash_combine_impl(std::size_t &seed, std::size_t value)
Definition: hashing.h:28
static const bool value
Definition: xdr_io.C:54

◆ hash_combine_impl()

void libMesh::boostcopy::hash_combine_impl ( std::size_t &  seed,
std::size_t  value 
)
inline

Definition at line 28 of file hashing.h.

References value.

Referenced by hash_combine().

29 {
30  seed ^= value + 0x9e3779b9 + (seed<<6) + (seed>>2);
31 }
static const bool value
Definition: xdr_io.C:54