Constructs a new object of type T and wraps it in a $(D_PSYMBOL RefCounted) using args as the parameter list for the constructor of T.
Constructs a new array with size elements and wraps it in a $(D_PSYMBOL RefCounted).
Constructs a new object of type T and wraps it in a $(D_PSYMBOL Unique) using args as the parameter list for the constructor of T.
Constructs a new array with size elements and wraps it in a $(D_PSYMBOL Unique).
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.
$(D_PSYMBOL Unique) stores an object that gets destroyed at the end of its scope.
Eugene Wissner 2016-2020.
Smart pointers.
A smart pointer is an object that wraps a raw pointer or a reference (class, dynamic array) to manage its lifetime.
This module provides two kinds of lifetime management strategies: