Unravel Engine C++ Reference
Loading...
Searching...
No Matches
hash.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <cstdint>
3
#include <memory>
4
5
namespace
utils
6
{
7
template
<
class
T>
8
inline
void
hash_combine
(std::size_t& seed,
const
T& v)
9
{
10
std::hash<T> hasher;
11
seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
12
}
13
}
// namespace utils
utils
Definition
hash.hpp:6
utils::hash_combine
void hash_combine(std::size_t &seed, const T &v)
Definition
hash.hpp:8
UnravelEngine
UnravelEngine
engine
core
base
hash.hpp
Generated by
1.12.0