Struct RollbackAllocator

Pointer-bump allocator with rollback functionality.

struct RollbackAllocator ;

Methods

NameDescription
allocate (size) Allocates size bytes of memory.
make (args) Allocates a T and returns a pointer to it
rollback (point) Rolls back the allocator to the given checkpoint.
setCheckpoint () Get a checkpoint for the allocator.