Array.capacity

struct Array(T)
@property
size_t
capacity
()
if (
is(immutable T == immutable bool)
)

Return Value

Type: size_t

The maximum number of elements the array can store without reallocating memory and invalidating iterators upon insertion.

Complexity: O(1).

Meta