staticArray

pragma(inline, true)
T[n]
staticArray
(
T
size_t n
)
(
auto ref T[n] array
)

Return Value

Type: T[n]

A static array constructed from array.

Examples

enum a = [0, 1].staticArray;
static assert(is(typeof(a) == int[2]));
static assert(a == [0, 1]);

Meta