Takes ownership over value, setting the counter to 1. value may be a pointer, an object or a dynamic array.
Decreases the reference counter by one.
Increases the reference counter by one.
Takes ownership over rhs. Initializes this $(D_PSYMBOL RefCounted) if needed.
Dereferences the pointer. It is defined only for pointers, not for reference types like classes, that can be accessed directly.
Allocator.
This property checks if the allocator was set in the constructor and sets it to the default one, if not.
Reference-counted object containing a T value as payload. $(D_PSYMBOL RefCounted) keeps track of all references of an object, and when the reference count goes down to zero, frees the underlying store.