makeWithElements

Construct an instance of T with elements.

T
makeWithElements
(
T
R
)
if (
isInputRange!R
)

Examples

alias A = int[];
const elements = [1,2,3];
const a = makeWithElements!(A)(elements);
assert(a.capacity == elements.length);
assert(a.length == elements.length);

Meta