makeOfCapacity

Construct an instance of T with capacity capacity.

T
makeOfCapacity
(
T
Capacity
)
(
Capacity capacity
)
if (
is(Capacity : size_t)
)

Examples

alias A = int[];
const n = 3;
const a = makeOfCapacity!(A)(n);
assert(a.capacity == n);

Meta