libMesh
Public Member Functions | List of all members
libMesh::hash Struct Reference

#include <hashing.h>

Public Member Functions

template<typename T1 , typename T2 >
std::size_t operator() (const std::pair< T1, T2 > &x) const
 

Detailed Description

Definition at line 44 of file hashing.h.

Member Function Documentation

◆ operator()()

template<typename T1 , typename T2 >
std::size_t libMesh::hash::operator() ( const std::pair< T1, T2 > &  x) const
inline

Definition at line 47 of file hashing.h.

References libMesh::boostcopy::hash_combine().

48  {
49  // Hopefully argument-based lookup lets us recurse with this
50  using std::hash;
51 
52  std::size_t returnval = hash<T1>()(x.first);
53  boostcopy::hash_combine(returnval, x.second);
54 
55  return returnval;
56  }
void hash_combine(std::size_t &seed, const T &value)
Definition: hashing.h:34

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