SList.opAssign

Assigns a static array.

  1. typeof(this) opAssign(R that)
  2. typeof(this) opAssign(R that)
  3. typeof(this) opAssign(R that)
  4. typeof(this) opAssign(T[R] that)
    struct SList(T)
    ref
    typeof(this)
    opAssign
    (
    size_t R
    )
    (
    T[R] that
    )

Parameters

R

Static array size.

that T[R]

Values to initialize the list with.

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Examples

auto l1 = SList!int([5, 4, 9]);
auto l2 = SList!int([9, 4]);
l1 = [9, 4];
assert(l1 == l2);

Meta