Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
std-hash.hh
Go to the documentation of this file.
1
#pragma once
8
9
#include <functional>
10
11
namespace
nix {
12
17
inline
void
hash_combine
(std::size_t & seed) {}
18
19
template
<
typename
T,
typename
... Rest>
20
inline
void
hash_combine(std::size_t & seed,
const
T & v, Rest... rest)
21
{
22
std::hash<T> hasher;
23
seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
24
hash_combine(seed, rest...);
25
}
26
27
}
// namespace nix
nix::hash_combine
void hash_combine(std::size_t &seed)
Definition
std-hash.hh:17
libutil
include
nix
util
std-hash.hh
Generated by
1.18.0