mirror of
https://github.com/azahar-emu/mcl
synced 2025-11-13 10:30:22 +01:00
mcl: hmap: Better default hash
This commit is contained in:
parent
f1d902ce9b
commit
ee74676775
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user