Function Array.capacity

size_t capacity() const @property;

Returns

How many elements the array can contain without reallocating.

Example

auto v = Array!int(4);
assert(v.capacity == 4);