Array.capacity

struct Array(T)
@property const
size_t
capacity
()

Return Value

Type: size_t

How many elements the array can contain without reallocating.

Examples

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

Meta