libMesh::myhash Struct Reference

#include <topology_map.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 41 of file topology_map.h.

Member Function Documentation

◆ operator()()

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

Definition at line 44 of file topology_map.h.

45  {
46  // recommendation from
47  // http://stackoverflow.com/questions/5889238/why-is-xor-the-default-way-to-combine-hashes
48  return 3 * std::hash<T1>()(x.first) + std::hash<T2>()(x.second);
49  }

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