GrowingContainer.length

Returns count of elements in this container

struct GrowingContainer(T, size_t size = 1000, Allocator = Mallocator)
@property @safe @nogc nothrow pure const
size_t
length
()
if (
__traits(isPOD, T) ||
__traits(isArithmetic, T)
)

Examples

GrowingContainer!int container;
assert(container.length == 0);
container.put(10);
assert(container.length == 1);

Meta