makeOfLength

Construct an instance of T with length n.

T
makeOfLength
(
T
Length
)
(
Length length
)
if (
is(Length : size_t)
)

Examples

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

Meta