CPP08/ex02/inc/MutantStack.hpp

24 lines
655 B
C++

#pragma once
#include <stack>
template <typename T>
class MutantStack : public std::stack<T>
{
public:
MutantStack();
MutantStack(const MutantStack &other);
MutantStack(MutantStack &&other) noexcept;
MutantStack &operator=(const MutantStack &other);
MutantStack &&operator=(MutantStack &&other) noexcept;
~MutantStack() noexcept;
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"