lightScope

Tries to strip a reference counting handles from the value. This funciton should be used only when the result never skips the current scope.

This function is used by some algorithms to optimise work with reference counted types.

  1. auto ref lightScope [@property getter]
    @property ref
    lightScope
    (
    T
    )
    (
    auto ref return T v
    )
    if (
    !is(T : P*,
    P
    ) &&
    __traits(hasMember, T, "lightScope")
    )
  2. auto ref lightScope [@property getter]

Meta