RcArray

A refcounted array

Constructors

this
this(T[] values)

Creates a new RC array with values copied from the given slice.

this
this(inout(typeof(this)) rhs)

Copy-constructor

Destructor

~this
~this()

Destructor

Alias This

data

Members

Functions

opApply
int opApply(int delegate(ref size_t index, ref T value) dg)

Dict-iterator

opApply
int opApply(int delegate(ref T value) dg)

Dict-iterator

opAssign
void opAssign(inout(typeof(this)) rhs)

Assignment operator

opIndex
T opIndex(size_t i)

Indexes the array.

opIndexAssign
void opIndexAssign(TValue value, size_t i)

Assigns an element of the array.

opOpAssign
void opOpAssign(T rhs)

Adds the given entry into the array.

opOpAssign
void opOpAssign(T[] rhs)

Adds the given entry into the array.

remove
void remove(size_t i)

Removes the given key from the object.

resize
void resize(size_t length)

Resizes the reference counted array.

Properties

data
T[] data [@property getter]

The data stored in the refcounted array.

length
size_t length [@property getter]

Length of the array.

Static functions

make
typeof(this) make()

Makes a new array.

Meta