Array.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 Array(T)
    ref
    typeof(this)
    opAssign
    (
    size_t R
    )
    (
    T[R] that
    )

Parameters

R

Static array size.

that T[R]

Values to initialize the array with.

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Examples

auto v1 = Array!int([5, 15, 8]);
Array!int v2;

v2 = [5, 15, 8];
assert(v1 == v2);

Meta