/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* MutantStack.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: fgras-ca +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/03 18:22:10 by fgras-ca #+# #+# */ /* Updated: 2024/03/03 18:35:45 by fgras-ca ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef MUTANTSTACK_HPP #define MUTANTSTACK_HPP #include #include #include template > class MutantStack : public std::stack { public: MutantStack(); // Constructeur par défaut MutantStack(const MutantStack& other); // Constructeur de copie ~MutantStack(); // Destructeur MutantStack& operator=(const MutantStack& other); // Opérateur d'assignation typedef typename Container::iterator iterator; typedef typename Container::const_iterator const_iterator; iterator begin(); iterator end(); const_iterator begin() const; const_iterator end() const; private: using std::stack::c; // Utilisez 'c' pour accéder au conteneur sous-jacent }; #include "MutantStack.tpp" #endif