Nektar++
Public Member Functions | List of all members
Nektar::PairHash Struct Reference

#include <HashUtils.hpp>

Public Member Functions

template<class T1 , class T2 >
std::size_t operator() (const std::pair< T1, T2 > &p) const
 

Detailed Description

Definition at line 88 of file HashUtils.hpp.

Member Function Documentation

◆ operator()()

template<class T1 , class T2 >
std::size_t Nektar::PairHash::operator() ( const std::pair< T1, T2 > &  p) const
inline

Definition at line 91 of file HashUtils.hpp.

92 {
93 std::size_t seed = 0;
94 auto h1 = std::hash<T1>{}(p.first);
95 auto h2 = std::hash<T2>{}(p.second);
96 hash_combine(seed, h1, h2);
97 return seed;
98 }
void hash_combine(std::size_t &seed)
Definition: HashUtils.hpp:44

References Nektar::hash_combine(), and CellMLToNektar.cellml_metadata::p.