diff options
Diffstat (limited to 'Stack.htpp')
| -rw-r--r-- | Stack.htpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Stack.htpp b/Stack.htpp deleted file mode 100644 index 64bfc66..0000000 --- a/Stack.htpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef STACK_HPP -# define STACK_HPP - -# include "vector.hpp" - -namespace ft -{ - template <class T, class Container = deque<T> > - 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 - |
