aboutsummaryrefslogtreecommitdiff
path: root/src/util/hash.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/hash.hpp')
-rw-r--r--src/util/hash.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/hash.hpp b/src/util/hash.hpp
new file mode 100644
index 0000000..72e9b82
--- /dev/null
+++ b/src/util/hash.hpp
@@ -0,0 +1,10 @@
+#pragma once
+
+#include <cstddef>
+
+constexpr auto GOLDEN_RATIO = 0x9e3779b9;
+
+template <typename Value>
+void hash_combine(std::size_t &seed, const Value &value) noexcept;
+
+#include "hash.tpp"