31 void push(
const std::string& s);
35 std::string
top()
const;
46 throw std::out_of_range(
"pop(): empty stack");
56 throw std::out_of_range(
"top(): empty stack");
void pop()
Pop element off the stack.
void push(const T &e)
Pushes element onto stack.
std::vector< T > elems
Container for the stack elements.
Stack()
Default constructor.
Stack class using vector as element container.
T top() const
Return top element of the stack (but not pop-ing it).
bool empty() const
Check whether stack is empty.
std::deque< std::string > elems
Container for the stack elements.