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
9
namespace
mce::Math {
10
11
struct
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
mce::Math::PairHash
Definition
PairHash.h:11
src
mc
deps
core
math
PairHash.h
Generated on
for LeviLamina by
1.16.1