18#ifndef MUTANTSTACK_HPP
19#define MUTANTSTACK_HPP
MutantStack(const MutantStack< T, Container > &other)
Copy constructor.
const_iterator begin() const
Returns a const iterator pointing to the bottom (first element) of the stack.
void swap(MutantStack &other)
Swaps the contents of two MutantStack objects.
MutantStack< T, Container > & operator=(MutantStack< T, Container > other)
Assignment operator (copy-and-swap idiom).
const_reverse_iterator rbegin() const
Returns a const reverse iterator pointing to the top (last element) of the stack.
reverse_iterator rend()
Returns a reverse iterator pointing to the second-to-last element in the stack.
Container::const_iterator const_iterator
const_reverse_iterator rend() const
Returns a const reverse iterator pointing to the second-to-last element in the stack.
const_iterator end() const
Returns a const iterator pointing to the end of the stack (after the last element).
iterator begin()
Returns an iterator pointing to the bottom (first element) of the stack.
Container::reverse_iterator reverse_iterator
Container::iterator iterator
iterator end()
Returns an iterator pointing to the end of the stack (after the last element).
reverse_iterator rbegin()
Returns a reverse iterator pointing to the top (last element) of the stack.
Container::const_reverse_iterator const_reverse_iterator
MutantStack()
Default Constructor