xo-arena: + DArenaHashMap ctor from ArenaHashMapConfig
This commit is contained in:
parent
5b937ebb9d
commit
dbeb0bbb96
1 changed files with 8 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ArenaHashMapConfig.hpp"
|
||||
#include "DArenaVector.hpp"
|
||||
#include "hashmap/verify_policy.hpp"
|
||||
#include "hashmap/HashMapStore.hpp"
|
||||
|
|
@ -57,6 +58,7 @@ namespace xo {
|
|||
|
||||
public:
|
||||
/** create hash map **/
|
||||
DArenaHashMap(const ArenaHashMapConfig & cfg);
|
||||
DArenaHashMap(const std::string & name,
|
||||
size_type hint_max_capacity,
|
||||
bool debug_flag = false);
|
||||
|
|
@ -199,6 +201,12 @@ namespace xo {
|
|||
bool debug_flag_ = false;
|
||||
};
|
||||
|
||||
template <typename Key, typename Value, typename Hash, typename Equal>
|
||||
DArenaHashMap<Key, Value, Hash, Equal>::DArenaHashMap(const ArenaHashMapConfig & cfg)
|
||||
: DArenaHashMap(cfg.name_, Hash(), Equal(), cfg.hint_max_capacity_, cfg.debug_flag_)
|
||||
{
|
||||
}
|
||||
|
||||
template <typename Key, typename Value, typename Hash, typename Equal>
|
||||
DArenaHashMap<Key, Value, Hash, Equal>::DArenaHashMap(const std::string & name,
|
||||
size_type hint_max_capacity,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue