Buffer.reserve

Reserves enough room for the specified number of elements. If there is already enough room, nothing is done. Otherwise the buffer is grown.

struct Buffer(T, Flag!"dynamic" dynamic = No.dynamic, size_t originalSize = 128)
pure nothrow pure @safe nothrow
static if(dynamic)
void
reserve
(
const size_t reserveSize
)

Parameters

reserveSize size_t

Number of elements to reserve size for.

Meta