Struct RollbackAllocator

Pointer-bump allocator with rollback functionality.

struct RollbackAllocator ;

Methods

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