mcl: hmap: Better default hash

This commit is contained in:
Merry 2022-05-01 18:26:50 +01:00
parent f1d902ce9b
commit ee74676775

View File

@ -11,6 +11,7 @@
#include "mcl/assert.hpp" #include "mcl/assert.hpp"
#include "mcl/bitsizeof.hpp" #include "mcl/bitsizeof.hpp"
#include "mcl/hash/xmrx.hpp"
#include "mcl/hint/assume.hpp" #include "mcl/hint/assume.hpp"
#include "mcl/macro/architecture.hpp" #include "mcl/macro/architecture.hpp"
#include "mcl/stdint.hpp" #include "mcl/stdint.hpp"
@ -295,7 +296,7 @@ private:
slot_type* slot_ptr{nullptr}; slot_type* slot_ptr{nullptr};
}; };
template<typename KeyType, typename MappedType, typename Hash = std::hash<KeyType>, typename Pred = std::equal_to<KeyType>> template<typename KeyType, typename MappedType, typename Hash = hash::avalanche_xmrx<KeyType>, typename Pred = std::equal_to<KeyType>>
class hmap { class hmap {
public: public:
using key_type = KeyType; using key_type = KeyType;