RefCounted.opAssign

Takes ownership over rhs. Initializes this $(D_PSYMBOL RefCounted) if needed.

If it is the last reference of the previously owned object, it will be destroyed.

To reset $(D_PSYMBOL RefCounted) assign $(D_KEYWORD null).

If the allocator wasn't set before, $(D_PSYMBOL defaultAllocator) will be used. If you need a different allocator, create a new $(D_PSYMBOL RefCounted) and assign it.

  1. typeof(this) opAssign(Payload!T rhs)
  2. typeof(this) opAssign(typeof(null) )
    struct RefCounted(T)
    ref
    typeof(this)
    opAssign
    (
    typeof(null)
    )
  3. typeof(this) opAssign(typeof(this) rhs)

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Meta