/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* MutantStack.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/08/07 23:20:42 by apommier #+# #+# */ /* Updated: 2022/08/07 23:51:47 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ #include #include #include #include template class MutantStack : public std::stack{ public : MutantStack(){} MutantStack( const MutantStack &src ) { *this = src; } ~MutantStack(){} MutantStack &operator=(const MutantStack &rhs) { (void)rhs; return *this; } typedef typename std::stack::container_type::iterator iterator; //simplify name iterator begin() { return this->c.begin(); //std::cbegin | std::begin } iterator end() { return this->c.end(); } private : };