DArray

Destructor

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

Postblit

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

Members

Functions

insertBack
void insertBack(auto ref S t)
void insertBack(auto ref S s)
void insertBack(auto ref S defaultValue, size_t num)

This function inserts an S element at the back if there is space. Otherwise the behaviour is undefined.

insertFront
void insertFront(auto ref S t)

This function inserts an S element at the front if there is space. Otherwise the behaviour is undefined.

opIndex
T opIndex(const size_t idx)
const(T) opIndex(const size_t idx)

Use an index to access the array.

removeAll
void removeAll()

This function removes all elements from the array.

removeBack
void removeBack()

This function removes an element form the back of the array.

removeFront
void removeFront()

This function removes an element form the front of the array.

Properties

back
T back [@property getter]

Access the last or the first element of the array.

empty
bool empty [@property getter]

Gives the length of the array.

front
T front [@property getter]

Access the last or the first element of the array.

length
size_t length [@property getter]

Gives the length of the array.

Variables

disableDtor
bool disableDtor;

If true no destructor of any element stored in the DArray will be called.

Meta