DynamicArray

Array that is able to grow itself when items are appended to it. Uses reference counting to manage memory and malloc/free/realloc for managing its storage.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Aliases

put
alias put = insert

Inserts the given value into the end of the array.

Functions

insert
void insert(T value)

Inserts the given value into the end of the array.

length
size_t length()
opIndex
T opIndex(size_t i)

Index operator overload

opIndexAssign
void opIndexAssign(T value, size_t i)

Index assignment support

opSlice
T[] opSlice()
T[] opSlice(size_t a, size_t b)

Slice operator overload

opSliceAssign
void opSliceAssign(T value)
void opSliceAssign(T value, size_t i, size_t j)

Slice assignment support

Parameters

T

the array element type

supportGC

true if the container should support holding references to GC-allocated memory.

Meta