dparse.rollback_allocator
struct RollbackAllocator
Types 1
structRollbackAllocator
Pointer-bump allocator with rollback functionality.
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.auto make(T, Args...)(auto ref Args args)Allocates a T and returns a pointer to itbool contains(size_t point) constvoid allocateNode(size_t size)void deallocateNode()Destructors
Nested Templates
Node