Broom 1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
broom-unordered-multiset.h
Go to the documentation of this file.
1#pragma once
2
3#include <unordered_set>
4
5#include "broom.h"
6#include "impl/broom-containers.h"
7
8#define UNORDERED_MULTISET_METHODS(X_) \
9 CPP11_UNORDERED_MULTISET_METHODS(X_) \
10 CPP14_UNORDERED_MULTISET_METHODS(X_) \
11 CPP17_UNORDERED_MULTISET_METHODS(X_) \
12 CPP20_UNORDERED_MULTISET_METHODS(X_) \
13 CPP23_UNORDERED_MULTISET_METHODS(X_)
14
15namespace broom {
27// XXX(gc): Implement via forwarding instead?
28template <typename T, typename Hash = std::hash<T>,
29 typename KeyEqual = std::equal_to<T>,
30 typename Allocator = std::allocator<T>>
32 : private std::unordered_multiset<T, Hash, KeyEqual, Allocator>,
33 public BroomValue {
34 using Base = std::unordered_multiset<T, Hash, KeyEqual, Allocator>;
35
36 public:
37 DEF_TYPES()
43};
44} // namespace broom
45
46#undef UNORDERED_MULTISET_METHODS
47
48#include "impl/broom-undef.h"
#define UNORDERED_MULTISET_METHODS(X_)
std::queue< T, broom::deque< T > > queue
Definition broom-queue.h:12