|
ScapeGoatTree
|
#include <queue.hpp>
Public Member Functions | |
| ~Queue () | |
| void | push (T value) |
| void | pop () |
| bool | isEmpty () const |
| T | front () |
| int | size () const |
Private Attributes | |
| QNode< T > * | head {} |
| QNode< T > * | tail {} |
| int | nNodes {} |
Destroys the queue and releases memory by popping all elements.
Returns the value of the front element without removing it.
Returns the current number of elements in the queue.