RefCounted

Reference-counting memory owner, holds one shared instance of type T. Don't use it to hold built-in arrays, use custom array type instead. Deallocates in destructor, when reference count is zero.

Constructors

this
this()
Undocumented in source.
this
this(RefCounted!(DT, Atomic, Allocator) rhs)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

PtrT
alias PtrT = T
Undocumented in source.
PtrT
alias PtrT = T*
Undocumented in source.
RefCounterT
alias RefCounterT = size_t
Undocumented in source.
RefCounterT
alias RefCounterT = size_t
Undocumented in source.

Functions

opAssign
RefCounted!(T, Atomic, Allocator) opAssign(RefCounted!(DT, Atomic, Allocator) rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opAssign
ref opAssign(RefCounted!(T, Atomic, Allocator) rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
to
RefCounted!(BT, Atomic, Allocator) to()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

HoldsAllocator
enum HoldsAllocator;
Undocumented in source.

Properties

v
inout(T) v [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
v
inout(T) v [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
valid
bool valid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

make
RefCounted!(T, Atomic, Allocator) make(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
make
RefCounted!(T, Atomic, Allocator) make(Allocator alloc, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta