ref class by value built-in
Handle to an object of any reference type
Holds a handle without knowing the type of the object, e.g. to keep different kinds of objects in one array<ref>. Use handle assignment to store an object, @r = obj;, and cast<T>(r) to get a typed handle back. The is operator compares identity, e.g. r is obj or r is null.
Constructors
Operators
- void opCast(?&out outRef) cast
- Converts to a typed handle
- bool opEquals(const ref&in o) const == C++
- Returns whether both handles refer to the same object
- bool opEquals(const ?&in ref) const == C++
- Returns whether this handle refers to the given object
- ref& opHndlAssign(const ref&in other) @= C++
- Makes this handle refer to the same object as another
ref - ref& opHndlAssign(const ?&in ref) @=
- Makes this handle refer to the given object
Operator documentation
ref& ref:: opHndlAssign(const ?&in ref) @=
Makes this handle refer to the given object
Assigning null clears the handle.