The OpenD Programming Language

InSituRegion.alignment

An alias for minAlign, which must be a valid alignment (nonzero power of 2). The start of the region and all allocation requests will be rounded up to a multiple of the alignment.

InSituRegion!(4096) a1;
assert(a1.alignment == platformAlignment);
InSituRegion!(4096, 64) a2;
assert(a2.alignment == 64);
import std.experimental.allocator.building_blocks.region;
struct InSituRegion(size_t size, size_t minAlign = platformAlignment)
alias alignment = minAlign

Meta