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