Stack

LCFS container

Constructors

this
this(T[] vals)

Creates stack filled with vals

Members

Functions

clear
void clear()

Removes all elements from stack

limitLength
void limitLength(size_t len)

Limits length of stack, default is -1 which is limitless. If length is limited and new element is attempted to be pushed when stack is overfilled nothing will happen.

opOpAssign
Stack!T opOpAssign(T b)

opOpAssign x += y == x.push(y)

pop
T pop()

Returns first value and removes it from stack

push
void push(T[] vals)

Adds vals at end of stack

toArray
T[] toArray()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

empty
bool empty [@property getter]

Is stack empty

front
T front [@property getter]

Returns first value without removing it from stack

length
size_t length [@property getter]

Length of stack

Meta