TheAtlasEngine
Loading...
Searching...
No Matches
hash.hpp
1
#pragma once
2
#include <cstdint>
3
#include <unordered_map>
4
5
namespace
atlas {
6
template
<
typename
T,
typename
... Rest>
7
void
hash_combine(
size_t
& seed,
const
T& v,
const
Rest&... rest) {
8
seed ^= std::hash<T>()(v) + 0x9e3779b9 + (seed << 6) + (seed << 2);
9
(hash_combine(seed, rest), ...);
10
}
11
12
};
TheAtlasEngine
atlas
core
utilities
hash.hpp
Generated by
1.9.8