NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
ne_stl_map.h
浏览该文件的文档.
1#ifndef NE_STL_INCLUDENE_STL_MAP_H
2#define NE_STL_INCLUDENE_STL_MAP_H
3#include "ne_stl_build.h"
4#include "phmap.h"
5namespace nstd {
6template <class K>
8template <class K>
10template <class K, class V>
12template <class K>
14template <class K, class V, class Hash = hash_default_hash<K>, class Eq = hash_default_eq<K>, class Alloc = Allocator<Pair<const K, V>>>
15class map : public phmap::flat_hash_map<K, V, Hash, Eq, Alloc> { // NOLINT
16public:
17 map() = default;
18};
20template <class K,
21 class V,
22 class Hash = hash_default_hash<K>,
23 class Eq = hash_default_eq<K>,
24 class Alloc = Allocator<Pair<const K, V>>,
25 size_t N = 4, // NOLINT
26 class Mtx = NullMutex>
27class parallel_map : public phmap::parallel_flat_hash_map<K, V, Hash, Eq, Alloc> { // NOLINT
28public:
29 parallel_map() = default;
30};
31} // namespace nstd
32#endif // NE_STL_INCLUDENE_STL_MAP_H
Definition: ne_stl_map.h:15
map()=default
Definition: ne_stl_map.h:27
parallel_map()=default
Definition: phmap_base.h:4766
Definition: phmap.h:4640
Definition: phmap.h:4879
Definition: ne_stl_any.h:7
phmap::priv::hash_default_eq< K > hash_default_eq
Definition: ne_stl_map.h:9
phmap::priv::hash_default_hash< K > hash_default_hash
Definition: ne_stl_map.h:7
phmap::priv::Pair< const K, V > Pair
Definition: ne_stl_map.h:11
phmap::priv::Allocator< K > Allocator
Definition: ne_stl_map.h:13
typename priv::HashEq< T >::Eq hash_default_eq
Definition: phmap_fwd_decl.h:57
typename phmap::Allocator< T > Allocator
Definition: phmap_fwd_decl.h:61
typename priv::HashEq< T >::Hash hash_default_hash
Definition: phmap_fwd_decl.h:54
typename phmap::Pair< T1, T2 > Pair
Definition: phmap_fwd_decl.h:65