SList

Single-linked allocator-backed list.

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Constructors

this
this(Allocator allocator)

Use the given allocator for allocations.

Destructor

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

Postblit

this(this)
@disable this(this)

Disable copying.

Copying this object is disabled.

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