tango.core.ArrayLiteral

Module to create stack allocated array literals

License:

BSD style: see license.txt

Authors:

Pavel Sountsov
auto ArrayLiteral(ElemTypes...)(ElemTypes elems) ΒΆ
Creates a static array composed of passed elements. Note that the array is allocated on the stack, so care should be taken not to let slices of it escape from functions.

Returns:

Newly created static array.