Array.opAssign

Assigns another array.

If that is passed by value, it won't be copied, but moved. This array will take the ownership over that's storage and the allocator.

If that is passed by reference, it will be copied.

  1. typeof(this) opAssign(R that)
  2. typeof(this) opAssign(R that)
    struct Array(T)
    ref
    typeof(this)
    opAssign
    (
    R
    )
    ()
    if (
    is(R == Array)
    )
  3. typeof(this) opAssign(R that)
  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).

Meta