RefCount

Reference count for item of type T. Intended for use with interfaces, classes, pointers to structs, and arrays.

Constructors

this
this(T t)

Begin reference counting an existing item

this
this(Args args)

Create a new item and reference count it

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)

Copy

Alias This

interior

Members

Functions

opAssign
void opAssign(RefCount other)

Assign from an l-value RefCount

opIndex
auto ref opIndex(A args)

Expose array's opSlice and opIndex

opIndex
auto ref opIndex(A args)

Expose item's opSlice and opIndex

opIndexAssign
auto ref opIndexAssign(V v, I i)

Expose array's opSlice and opIndex

opIndexAssign
auto ref opIndexAssign(A args)

Expose item's opSlice and opIndex

opSlice
auto ref opSlice(B b, E e)

Expose array's opSlice and opIndex

opSlice
auto ref opSlice(A args)

Expose item's opSlice and opIndex

opUnary
auto ref opUnary()

Dereference the RefCount and access the contained item

Structs

Interior
struct Interior

A heap allocated struct which contains the item and number of references

Variables

interior
Interior* interior;
Undocumented in source.
interior
Interior* interior;
Undocumented in source.

Meta