staticArrayOf

Create a static array literal without any heap allocation.

staticArray() automatically deduces its type from the arguments, while staticArrayOf() lets you specify the type explicitly.

  1. CommonType!(T)[T.length] staticArray(T elements)
  2. T[U.length] staticArrayOf(U elements)
    @safe pure nothrow
    T[U.length]
    staticArrayOf
    (
    T
    U...
    )

Meta