NuRefCounted.isValid

Returns whether this object is valid.

Notes: The object validity is determined by the refcount. Uninitialized refcounted classes will be invalid. As such, releasing an invalid object will not invoke the destructor of said object.

class NuRefCounted
@nogc final @trusted nothrow
bool
isValid
()

Return Value

Type: bool

Whether the object is valid (has a refcount higher than 0)

Meta