Array

Undocumented in source.

Constructors

this
this(size_t capacity)

Array constructor. Creates an array.

this
this(size_t capacity, T defaultValue)

Array constructor. Creates an array with a specific default value.

Members

Functions

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
insert
void insert(T element)

Inserts element at the end of array.

opApply
int opApply(int delegate(size_t i, ref T) @(nogc) operation)

@nogc foreach support.

opApply
int opApply(int delegate(ref T) @(nogc) operation)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(size_t i, ref T) operation)

foreach support.

opApply
int opApply(int delegate(ref T) operation)
Undocumented in source. Be warned that the author may not have intended to support it.
opApplyImpl
int opApplyImpl(O operation)
Undocumented in source. Be warned that the author may not have intended to support it.
opApplyIndexImpl
int opApplyIndexImpl(O operation)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
T opIndex(size_t i)

Index operator overload.

opIndexAssign
void opIndexAssign(T value)

Index assignment support.

opIndexAssign
void opIndexAssign(T value, size_t i)

Index assignment support.

opSlice
T[] opSlice()

Slice operator overload.

opSlice
T[] opSlice(size_t a, size_t b)
Undocumented in source. Be warned that the author may not have intended to support it.
opSliceAssign
void opSliceAssign(T value)

Slice assignment support.

opSliceAssign
void opSliceAssign(T[] values)
Undocumented in source. Be warned that the author may not have intended to support it.
opSliceAssign
void opSliceAssign(T value, size_t i, size_t j)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAt
void removeAt(size_t i)

Removes the item at the given index from the array.

removeBack
void removeBack()

Removes the last element from the array.

Properties

back
T back [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
capacity
size_t capacity [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
data
T[] data [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
front
T front [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta