44 lines
1.5 KiB
C++
44 lines
1.5 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* MutantStack.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2026/04/21 11:32:08 by aortigos #+# #+# */
|
|
/* Updated: 2026/04/21 11:32:08 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef MUTANTSTACK_HPP
|
|
# define MUTANTSTACK_HPP
|
|
|
|
# include <iostream>
|
|
# include <stack>
|
|
|
|
template <typename T>
|
|
class MutantStack : public std::stack<T>
|
|
{
|
|
private:
|
|
|
|
public:
|
|
MutantStack();
|
|
MutantStack(const MutantStack &other);
|
|
MutantStack& operator=(const MutantStack &other);
|
|
~MutantStack();
|
|
|
|
typedef typename std::stack<T>::container_type::iterator iterator;
|
|
typedef typename std::stack<T>::container_type::const_iterator const_iterator;
|
|
|
|
iterator begin();
|
|
iterator end();
|
|
|
|
const_iterator begin() const;
|
|
const_iterator end() const;
|
|
|
|
};
|
|
|
|
#include "MutantStack.tpp"
|
|
|
|
#endif
|