Broom
1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
include
broom-deque.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <deque>
4
5
#include "
broom.h
"
6
#include "impl/broom-containers.h"
7
8
#define DEQUE_METHODS(X_) \
9
CPP11_DEQUE_METHODS(X_) \
10
CPP14_DEQUE_METHODS(X_) \
11
CPP17_DEQUE_METHODS(X_) \
12
CPP20_DEQUE_METHODS(X_) \
13
CPP23_DEQUE_METHODS(X_)
14
15
namespace
broom
{
26
// XXX(gc): Implement via forwarding instead?
27
template
<
typename
T,
typename
Allocator = std::allocator<T>>
28
class
deque
:
private
std::deque<T, Allocator>,
public
BroomValue
{
29
using
Base = std::deque<T, Allocator>;
30
31
public
:
32
DEF_TYPES()
33
DEF_CONSTRUCTOR
(
deque
)
34
DEF_IL_CONSTRUCTOR
(
deque
)
35
DEF_METHODS
(
deque
)
36
DEF_SINGLE_VISIT
(T)
37
DEQUE_METHODS
(
USE_METHODS
)
38
};
39
}
// namespace broom
40
41
#undef DEQUE_METHODS
42
43
#include "impl/broom-undef.h"
DEQUE_METHODS
#define DEQUE_METHODS(X_)
Definition
broom-deque.h:8
broom.h
broom::BroomValue
Definition
broom.h:402
broom::deque
Definition
broom-deque.h:28
broom
Definition
allocator-inl.h:9
broom::queue
std::queue< T, broom::deque< T > > queue
Definition
broom-queue.h:12
Generated by
1.9.8