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
T
get
inout
(
)
if (
is(T == class)
)

Return Value

Type: T

The referenced object.

Meta