AllocAppender.reserve

Grows the capacity of the internal buffer so that it can hold a minumum amount of elements.

struct AllocAppender(ArrayType : E[], E)
@safe
void
reserve
(
size_t amount
)

Parameters

amount size_t

The minimum amount of elements that shall be appendable without triggering a re-allocation.

Meta