8#ifndef SkArenaAllocList_DEFINED
9#define SkArenaAllocList_DEFINED
28 void reset() { fHead = fTail =
nullptr; }
30 template <
typename... Args>
44 explicit Iter(Node* node) : fCurr(node) {}
45 Node* fCurr =
nullptr;
54 template <
typename... Args>
59 Node* fHead =
nullptr;
60 Node* fTail =
nullptr;
64template <
typename... Args>
67 auto* n = arena->
make<Node>(std::forward<Args>(
args)...);
71 fTail = fTail->fNext = n;
bool operator==(const Iter &that) const
bool operator!=(const Iter &that) const
SkArenaAllocList()=default
T & append(SkArenaAlloc *arena, Args... args)
auto make(Ctor &&ctor) -> decltype(ctor(nullptr))
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args