DDD 1.9.0.20250409152518
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
12namespace d3 {
13
14template
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 >
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 vector.hh:17

Please comment this page and report errors about it on the RefDocComments page.
Generated on Wed Apr 9 2025 15:27:42 for DDD by doxygen 1.9.8