Struct RollbackAllocator
Pointer-bump allocator with rollback functionality.
struct RollbackAllocator
;
Methods
Name | Description |
---|---|
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. |