feat(library/phash_map): add name_hash_map
This commit is contained in:
parent
bea122bb22
commit
afadf2b1e1
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#pragma once
|
||||
#include "util/bit_tricks.h"
|
||||
#include "util/name.h"
|
||||
#include "library/phashtable.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
@ -116,4 +117,7 @@ public:
|
|||
phashtable2map<default_map_entry<Key, Value>, HashProc, EqProc, ThreadSafe>(h, e) {
|
||||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
using name_hash_map = phash_map<name, T, name_hash, name_eq, true>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue