diff options
Diffstat (limited to 'hash/hash.hpp')
-rw-r--r-- | hash/hash.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hash/hash.hpp b/hash/hash.hpp index e3df6e90..b5916e8f 100644 --- a/hash/hash.hpp +++ b/hash/hash.hpp @@ -3,12 +3,14 @@ #include <cr/StringView.h> namespace floormat { -namespace Hash = xxHash; -using Hash::hash_buf; -using Hash::hash_int; +namespace Hash_int = xxHash; +namespace Hash_str = xxHash; + +using Hash_int::hash_int; +using Hash_str::hash_buf; struct hash_string_view { [[nodiscard]] CORRADE_ALWAYS_INLINE size_t operator()(StringView str) const noexcept; }; -size_t hash_string_view::operator()(StringView str) const noexcept { return hash_buf(str.data(), str.size()); } +size_t hash_string_view::operator()(StringView str) const noexcept { return Hash_str::hash_buf(str.data(), str.size()); } } // namespace floormat |