DDD
1.9.0.20250409152518
util
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
10
#include "
ddd/util/configuration.hh
"
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_ */
configuration.hh
d3
Definition
Hom.cpp:41
conf::allocator::type
std::allocator< T > type
Definition
configuration.hh:39
d3::hash_set
Definition
hash_set.hh:22
d3::hash_set::type
google::sparse_hash_set< Key, Hash, Compare, Allocator > type
Definition
hash_set.hh:24
d3::util::vector
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
1.9.8