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