StackImpl

A @nogc dynamic stack

Destructor

~this
~this()
Undocumented in source.

Members

Functions

clear
void clear()

Clears the vector, removing all elements from it.

opOpAssign
void opOpAssign(T value)

Pushes an element onto the stack.

opOpAssign
void opOpAssign(T[] other)

Append a range to the stack.

peek
T peek(size_t offset)

Peeks a value in the stack.

pop
T pop()

Pops a value from the stack.

push
void push(T value)

Pushes an element onto the stack.

tryPeek
bool tryPeek(size_t offset, T dst)

Attempts to peek a value from the stack.

tryPop
bool tryPop(T dst)

Attempts to pop a value from the stack.

Properties

capacity
size_t capacity [@property getter]

The capacity of the vector.

empty
bool empty [@property getter]

Whether the vector is empty.

length
size_t length [@property getter]

The length of the vector

values
T[] values [@property getter]

Gets the internal memory slice.

Meta