DDD  1.9.0.20240826145154
hash_set.hh
Go to the documentation of this file.
1 #ifndef _HASH_SET_HH_
2 #define _HASH_SET_HH_
3 
4 #ifndef USE_STD_HASH
5 #include <ddd/google/sparse_hash_set>
6 #else
7 #include <unordered_set>
8 #endif
9 
11 
12 namespace d3 {
13 
14 template
15  <
16  typename Key
17  , typename Hash = d3::util::hash<Key>
18  , typename Compare = d3::util::equal<Key>
19  , typename Allocator = typename conf::allocator<Key>::type
20  >
21 struct hash_set
22 {
23 #ifndef USE_STD_HASH
24  typedef typename google::sparse_hash_set<Key,Hash,Compare,Allocator> type;
25 #else
26  typedef typename std::unordered_set<Key,Hash,Compare,Allocator> type;
27 #endif
28 };
29 
30 } // namespace d3
31 
32 #endif /* _SET_HH_ */
Definition: Hom.cpp:41
std::allocator< T > type
Definition: configuration.hh:39
Definition: hash_set.hh:22
google::sparse_hash_set< Key, Hash, Compare, Allocator > type
Definition: hash_set.hh:24
Definition: hash_support.hh:51
Definition: hash_support.hh:40

Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Aug 26 2024 14:54:00 for DDD by doxygen 1.9.1