LeviLamina
Loading...
Searching...
No Matches
PairHash.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5#include <utility>
6
7#include "ll/api/utils/HashUtils.h"
8
9namespace mce::Math {
10
11struct PairHash {
12 template <typename T1, typename T2>
13 size_t operator()(std::pair<T1, T2> const& p) const noexcept {
14 return ll::hash_utils::HashCombiner{}.add(p.first).add(p.second);
15 }
16};
17
18} // namespace mce::Math
Definition PairHash.h:11