19 template <
typename T,
typename U>
20 struct hash<std::pair<T, U>> {
24 static constexpr
size_t magicOffset = 0x9e3779b99e3779b9;
27 static constexpr std::hash<T> hasher1;
28 static constexpr std::hash<U> hasher2;
29 auto h1 = hasher1(_key.first),
30 h2 = hasher2(_key.second);
31 return h2 + magicOffset + (h1 << 6) + (h1 >> 2);
size_t operator()(const KeyPair &_key) const noexcept
Definition: Hash.h:26
std::pair< T, U > KeyPair
Definition: Hash.h:22