Default hashing function for std::pair.
More...
#include <tpie/hash.h>
|
size_t | operator() (const std::pair< T1, T2 > &e) const |
| Calculate std::pair hash. More...
|
|
template<typename T1, typename T2>
struct tpie::hash< std::pair< T1, T2 > >
Default hashing function for std::pair.
- Template Parameters
-
T1 | First part of std::pair. |
T2 | Second part of std::pair. |
Definition at line 67 of file hash.h.
template<typename T1 , typename T2 >
size_t tpie::hash< std::pair< T1, T2 > >::operator() |
( |
const std::pair< T1, T2 > & |
e | ) |
const |
|
inline |
Calculate std::pair hash.
- Parameters
-
Definition at line 75 of file hash.h.
76 return h1(e.first) + h2(e.second) * 99181;
The documentation for this struct was generated from the following file: