GrowingContainer.get

Returns primitives as an array

struct GrowingContainer(T, size_t size = 1000, Allocator = Mallocator)
@property ref @safe @nogc nothrow
T[]
get
()
if (
__traits(isPOD, T) ||
__traits(isArithmetic, T)
)

Examples

GrowingContainer!int container;
container.put(10);
assert(container.get[0] == 10);

Meta