DynamicArray.reserve

Ensures sufficient capacity to accommodate for minimumCapacity number of elements. If minimumCapacity < capacity, this method does nothing.

struct DynamicArray(T, Allocator = Mallocator, Capacity = size_t)
@trusted scope pure nothrow @nogc
size_t
reserve
(
in size_t minimumCapacity
)
if (
!is(immutable T == immutable bool) &&
(
is(Capacity == ulong) ||
is(Capacity == uint)
)
&&
isAllocator!Allocator
)

Meta