/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* MutantStack.tpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/04 13:39:16 by rparodi #+# #+# */ /* Updated: 2025/04/04 14:15:31 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ template MutantStack::MutantStack() : std::stack() { std::cout << CLR_CYAN << "[MutantStack] Default constructor called" << CLR_RESET << std::endl; } template MutantStack::MutantStack(const MutantStack ©) : std::stack(copy) { std::cout << CLR_CYAN << "[MutantStack] Copy constructor called" << CLR_RESET << std::endl; } template MutantStack& MutantStack::operator=(const MutantStack &assign) { std::cout << CLR_CYAN << "[MutantStack] Assignment operator called" << CLR_RESET << std::endl; if (this != &assign) { std::stack::operator=(assign); } return *this; } template MutantStack::~MutantStack() { std::cout << CLR_MAGENTA << "[MutantStack] Destructor called" << CLR_RESET << std::endl; } template typename MutantStack::iterator MutantStack::begin() { return this->c.begin(); } template typename MutantStack::iterator MutantStack::end() { return this->c.end(); }