SList

Single-linked allocator-backed list.

Constructors

this
this()

No default construction if an allocator must be provided.

this
this(Allocator allocator)

Use the given allocator for allocations.

Destructor

~this
~this()

Undocumented in source.

Postblit

this(this)
this(this)

Disable copying.

Members

Aliases

insert
alias insert = insertFront

Inserts an item at the front of the list.

opSlice
alias opSlice = range

Forward range interface

put
alias put = insertFront

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()
insertFront
void insertFront(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.

Meta