vengine
0.0.1
3D graphics engine
Loading...
Searching...
No Matches
HashCombine.hpp
Go to the documentation of this file.
1
///
2
/// @file HashCombine.hpp
3
/// @brief
4
/// @namespace ven
5
///
6
7
#pragma once
8
9
#include <functional>
10
11
namespace
ven
{
12
13
template
<
typename
T,
typename
... Rest>
14
void
hashCombine
(std::size_t& seed,
const
T& v,
const
Rest&... rest) {
15
seed ^= std::hash<T>{}(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
16
(
hashCombine
(seed, rest), ...);
17
}
18
19
}
// namespace ven
ven
ven::hashCombine
void hashCombine(std::size_t &seed, const T &v, const Rest &... rest)
Definition
HashCombine.hpp:14
include
VEngine
Utils
HashCombine.hpp
Generated by
1.11.0