automem.ref_counted

A reference-counted smart pointer.

Members

Aliases

RC
alias RC = RefCounted
Undocumented in source.

Functions

refCounted
auto refCounted(Unique!(Type, Allocator) ptr)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

gcExists
enum gcExists;
Undocumented in source.
gcExists
enum gcExists;
Undocumented in source.

Structs

RefCounted
struct RefCounted(RefCountedType, Allocator = typeof(theAllocator), Flag!"supportGC" supportGC = gcExists ? Flag!"supportGC".yes : Flag!"supportGC".no)

A reference-counted smart pointer similar to C++'s std::shared_ptr.

Meta