Region

Simple region storage allocator.

Members

Functions

contains
bool contains(void* p)

If pointer points into Region.

malloc
void* malloc(size_t nbytes)

Allocate nbytes. Aborts on failure.

release
void release(RegionPos pos)

Release the memory that was allocated after the respective call to savePos().

savePos
RegionPos savePos()

Return stack position for allocations in this region.

size
size_t size()

Meta