Array.opAssign

Assigns a range to the array.

  1. typeof(this) opAssign(R that)
  2. typeof(this) opAssign(R that)
  3. typeof(this) opAssign(R that)
    struct Array(T)
    ref
    typeof(this)
    opAssign
    (
    R
    )
    (
    scope R that
    )
    if (
    !isInfinite!R &&
    isInputRange!R
    &&
    isImplicitlyConvertible!(ElementType!R, T)
    )
  4. typeof(this) opAssign(T[R] that)

Parameters

R

Content type.

that R

The value should be assigned.

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Examples

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

Meta