7 #ifndef AULA1_STACK_HPP 8 #define AULA1_STACK_HPP 19 std::string
getName() {
return "Stack Interface"; }
23 virtual void push(T val) =0;
std::string getName()
Provides the name of the data structure as a string representation.
Base class for all data structures.
virtual void push(T val)=0
Add an element to the top of the stack.
Abstract stack interface.
virtual T peek()=0
See the value from the top of the stack, without removing it.
virtual T pop()=0
Remove an element from the top of the stack.