GrowingContainer.put

Put a new element val into the container

struct GrowingContainer(T, size_t size = 1000, Allocator = Mallocator)
@trusted @nogc nothrow
void
put
(
T val
)
if (
__traits(isPOD, T) ||
__traits(isArithmetic, T)
)

Examples

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

Meta