Go to the documentation of this file.
79 void push(
const T& element)
85 void push(
T&& element)
87 this->
insert(std::move(element));
reference first()
The first entry in the list.
T bottom() const
Return a copy of the bottom element.
void push(T &&element)
Move an element onto the front of the stack.
T pop()
Pop the top element off the stack.
Template class for non-intrusive linked lists.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Non-intrusive singly-linked list.
reference last()
The last entry in the list.
A LIFO stack based on a singly-linked list.
T top() const
Return a copy of the top element.
void push(const T &element)
Push an element onto the front of the stack.
void insert(const T &item)
Add copy at head of list.
T removeHead()
Remove and return head.