DList.opAssign

Assigns an input range.

  1. typeof(this) opAssign(R that)
  2. typeof(this) opAssign(R that)
  3. typeof(this) opAssign(R that)
    struct DList(T)
    ref @trusted
    typeof(this)
    opAssign
    (
    R
    )
    (
    scope R that
    )
  4. typeof(this) opAssign(T[R] that)

Parameters

R

Type of the initial range.

that R

Values to initialize the list with.

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Examples

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

Meta