/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* MutantStack.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/09/19 09:39:40 by narnaud #+# #+# */ /* Updated: 2022/09/19 09:39:45 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include #include template class MutantStack : public std::stack { public: MutantStack(void) {} MutantStack(const MutantStack &st) { *this = st; } ~MutantStack(void) {} MutantStack &operator=(const MutantStack &st) { (void)st; return *this; } typedef typename std::stack::container_type::iterator iterator; iterator begin() { return this->c.begin(); } iterator end() { return this->c.end(); } };