dparse.rollback_allocator

Types 1

Pointer-bump allocator with rollback functionality.

Fields
memoryAlignment
Node * first
Methods
void[] allocate(const size_t size)Allocates `size` bytes of memory.
void rollback(size_t point)Rolls back the allocator to the given checkpoint.
size_t setCheckpoint() const nothrow @nogcGet a checkpoint for the allocator.
auto make(T, Args...)(auto ref Args args)Allocates a T and returns a pointer to it
bool contains(size_t point) const
void allocateNode(size_t size)
Destructors
Nested Templates
Node