#pragma once #include #ifndef XXH_INLINE_ALL #define XXH_INLINE_ALL #endif #include namespace rex { template struct IdentityHasher { size_t operator()(const Key& key) const { return static_cast(key); } }; template struct XXHasher { size_t operator()(const Key& key) const { return static_cast(XXH3_64bits(&key, sizeof(key))); } }; } // namespace rex