SList

Single-linked allocator-backed list.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)

Disable copying.

Members

Aliases

insertFront
alias insertFront = insert

Inserts an item at the front of the list.

opSlice
alias opSlice = range

Forward range interface

put
alias put = insert

Inserts an item at the front of the list.

Functions

clear
void clear()

Removes all elements from the range

empty
bool empty()
front
auto front()
insert
void insert(T t)

Inserts an item at the front of the list.

length
size_t length()
moveFront
T moveFront()

Removes and returns the first item in the list.

opOpAssign
void opOpAssign(T t)

Supports list ~= item syntax

popFront
void popFront()

Removes the first item in the list.

range
auto range()

Forward range interface

remove
bool remove(V value)

Removes the first instance of value found in the list.

Parameters

T

the element type

Meta