The OpenD Programming Language

mmapRegionList

Creates a scalable AllocatorList of Regions, each having at least bytesPerRegion bytes. Allocation is very fast. This allocator does not offer deallocate but does free all regions in its destructor. It is recommended for short-lived batch applications that count on never running out of memory.

mmapRegionList

Examples

auto alloc = mmapRegionList(1024 * 1024);
const b = alloc.allocate(100);
assert(b.length == 100);

Meta