Broom 1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
broom-set.h
Go to the documentation of this file.
1#pragma once
2
3#include <set>
4
5#include "broom.h"
6#include "impl/broom-containers.h"
7
8#define SET_METHODS(X_) \
9 CPP11_SET_METHODS(X_) \
10 CPP14_SET_METHODS(X_) \
11 CPP17_SET_METHODS(X_) \
12 CPP20_SET_METHODS(X_) \
13 CPP23_SET_METHODS(X_)
14
15namespace broom {
25// XXX(gc): Implement via forwarding instead?
26template <typename T, typename Compare = std::less<T>,
27 typename Allocator = std::allocator<T>>
28class set : private std::set<T, Compare, Allocator>, public BroomValue {
29 using Base = std::set<T, Compare, Allocator>;
30
31 public:
32 DEF_TYPES()
38};
39} // namespace broom
40
41#undef SET_METHODS
42
43#include "impl/broom-undef.h"
#define SET_METHODS(X_)
Definition broom-set.h:8
std::queue< T, broom::deque< T > > queue
Definition broom-queue.h:12