Array.reserve

Ensures sufficient capacity to accommodate e _elements. If e < capacity, this method does nothing.

Postcondition: capacity >= e

Note: If the capacity is increased, one should assume that all iterators to the elements are invalidated.

Complexity: at most O(length) if e > capacity, otherwise O(1).

struct Array(T)
void
reserve
(
size_t e
)
if (
is(immutable T == immutable bool)
)

Meta