WeakReference.get

Return the referenced object held in this weak reference wrapper. If and when the object is collected, this function will return null.

class WeakReference(T)
@trusted pure nothrow inout
T
get
()
if (
is(T == class) ||
is(T == interface)
)

Return Value

Type: T

The referenced object.

Meta