From 46b9e6f61275c4ed4cd2e8f319cad4f6bc73100f Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 31 Jan 2020 12:46:19 +0100 Subject: List split cpp hpp (may be ridiculous and may have forgot how templates work) --- stack.hpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 stack.hpp (limited to 'stack.hpp') diff --git a/stack.hpp b/stack.hpp deleted file mode 100644 index 64bfc66..0000000 --- a/stack.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef STACK_HPP -# define STACK_HPP - -# include "vector.hpp" - -namespace ft -{ - template > - class stack : public vector - { - public: - explicit stack (const container_type& ctnr = container_type()); - value_type& top() - { - return back(); - } - void push (const value_type& val) - { - push_back(val); - } - void pop() - { - pop_back(); - } - }; -} - -#endif - -- cgit