qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
unordered_set.h
Go to the documentation of this file.
1
24
25#ifndef QB_UNORDERED_SET_H
26#define QB_UNORDERED_SET_H
27#include <set>
28#include <ska_hash/unordered_map.hpp>
29#include <unordered_set>
30
31namespace qb {
32
45template <typename K, typename H = std::hash<K>, typename E = std::equal_to<K>,
46 typename A = std::allocator<K>>
47using unordered_flat_set = ska::flat_hash_set<K, H, E, A>;
48
49#ifdef NDEBUG
62template <typename K, typename H = std::hash<K>, typename E = std::equal_to<K>,
63 typename A = std::allocator<K>>
64using unordered_set = ska::unordered_set<K, H, E, A>;
65#else
79template <typename K, typename H = std::hash<K>, typename E = std::equal_to<K>,
80 typename A = std::allocator<K>>
81using unordered_set = std::unordered_set<K, H, E, A>;
82#endif
83
84} // namespace qb
85
86#endif // QB_UNORDERED_SET_H
std::unordered_set< K, H, E, A > unordered_set
The primary unordered set implementation.
Definition unordered_set.h:81
ska::flat_hash_set< K, H, E, A > unordered_flat_set
A high-performance flat hash set implementation.
Definition unordered_set.h:47