|
ScapeGoatTree
|
#include <stack.hpp>
Public Member Functions | |
| void | push (const T &value) |
| T | pop () |
| T | top () |
| unsigned int | size () const |
| bool | isEmpty () const |
Private Attributes | |
| Vector< T > | data |
Removes and returns the top element from the stack. Throws std::out_of_range if the stack is empty.
Pushes a new element onto the stack.
Returns the number of elements currently in the stack.