1#ifndef STACK_PROJECT_COMMA_H
2#define STACK_PROJECT_COMMA_H
43 void push(T
const &elem) { _elems.push_back(elem); }
50 return static_cast<T
>(-1);
52 T elem = _elems.front();
62 return static_cast<T
>(-1);
64 return _elems.front();
70 inline bool empty()
const {
return _elems.empty(); }
A template class implementing a custom queue data structure.
Definition: Queue.h:29
T top() const
Scope to the element on the bottom of the queue.
Definition: Queue.h:60
T pop()
pop an element from the bottom of the queue
Definition: Queue.h:48
~Queue()=default
Destructor.
bool empty() const
Whether the queue is empty.
Definition: Queue.h:70
Queue()=default
Constructor.
void push(T const &elem)
Push an element on the top of the queue.
Definition: Queue.h:43
Definition: Agglomerator.h:37