summaryrefslogtreecommitdiffhomepage
path: root/compat/int-hash.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/int-hash.hpp')
-rw-r--r--compat/int-hash.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/int-hash.hpp b/compat/int-hash.hpp
index a5d6b147..27f2651f 100644
--- a/compat/int-hash.hpp
+++ b/compat/int-hash.hpp
@@ -1,5 +1,7 @@
#pragma once
+// todo rename to hash-fnv.hpp
+
namespace floormat::Hash {
template<size_t N = sizeof nullptr * 8> struct fnvhash_params;
@@ -20,4 +22,6 @@ uint32_t hash_32(const void* buf, size_t size) noexcept;
size_t hash_int(uint32_t x) noexcept;
size_t hash_int(uint64_t x) noexcept;
+struct hash_string_view { size_t operator()(StringView str) const noexcept; };
+
} // namespace floormat