From f0824fdebc79fbf3843c2053522107c33e3ce2a3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 7 Mar 2022 20:20:18 +0100 Subject: refactor: move directions to vector2 & make vector2 hashable --- src/util/hash.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/util/hash.hpp (limited to 'src/util/hash.hpp') 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 + +constexpr auto GOLDEN_RATIO = 0x9e3779b9; + +template +void hash_combine(std::size_t &seed, const Value &value) noexcept; + +#include "hash.tpp" -- cgit v1.2.3-18-g5258