Something went wrong. Try again.
Java--'s standard template library projects.intra.42.fr/projects/cpp-module-08
Something went wrong. Try again.
462 B · 17 lines
C++
at main
123456789101112131415161718#pragma once
#include <stack>
template <typename T> class MutantStack : public std::stack<T> { public: MutantStack() {}; MutantStack(const MutantStack& other) { *this = other; };
MutantStack& operator=(const MutantStack& other) { return std::stack<T>::operator=(other); };
typedef typename std::stack<T>::container_type::iterator iterator; iterator begin() { return this->c.begin(); } iterator end() { return this->c.end(); }
~MutantStack() {};};