RefCounted

Undocumented in source.

Constructors

this
this(Args args)

The allocator is a singleton, so no need to pass it in to the constructor

this
this(Allocator allocator, Args args)

Non-singleton allocator, must be passed in

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Alias This

_impl

Members

Functions

opAssign
void opAssign(RefCounted other)

Assign to an lvalue RefCounted

opAssign
void opAssign(RefCounted other)

Assign to an rvalue RefCounted

opIndex
auto ref opIndex(A args)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
auto ref opIndexAssign(A args)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
auto ref opSlice(A args)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
auto ref opUnary()

Dereference the smart pointer and yield a reference to the contained type.

Manifest constants

isGlobal
enum isGlobal;
Undocumented in source.
isSingleton
enum isSingleton;
Undocumented in source.
isTheAllocator
enum isTheAllocator;
Undocumented in source.

Static functions

construct
typeof(this) construct(Args args)

Factory method so can construct with zero args.

construct
typeof(this) construct(Allocator allocator, Args args)

Factory method. Not necessary with non-global allocator but included for symmetry.

Variables

_impl
ImplType* _impl;
Undocumented in source.

Meta