UnrolledList

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

Aliases

constRange
alias constRange = makeRange!"const"

Create new const range. Const range preserve it's correctness by preventing you from any list mutations.

Functions

back
auto back()

Get last item. O(1)

get
auto get(size_t i)

Get item at some position.

insert
bool insert(int i, V v)

Insert item at position i. O(N)

popBack
void popBack()

Pop last item from the list. O(1)

popFront
void popFront()

Pop first item from the list. O(1)

pushBack
void pushBack(V v)

Append item to the list. O(1)

pushFront
void pushFront(V v)

Prepend list with item v. O(1)

remove
bool remove(int i)

Remove item from the list by item index. O(N)

Structs

Iterator
struct Iterator(I)