DynamicArray

Array that is able to grow itself when items are appended to it. Uses malloc/free/realloc to manage its storage.

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Constructors

this
this(Allocator allocator)

Use the given allocator for allocations.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

Copying this object is disabled.

A postblit is present on this object, but not explicitly documented in the source.

Members

Aliases

put
alias put = insert

Inserts the given value into the end of the array.

Functions

back
T back()
empty
bool empty()
front
T front()
insert
void insert(T value)

Inserts the given value into the end of the array.

length
size_t length()
opIndex
auto opIndex(size_t i)

Index operator overload

opIndexAssign
void opIndexAssign(T value, size_t i)

Index assignment support

opSlice
auto opSlice()
auto 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

ptr
auto ptr()

Meta