diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-01 14:17:04 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-15 12:59:58 +0200 |
| commit | be2676e56ae0c72321c60c4848ce720ccf095b26 (patch) | |
| tree | de96e98403ea8740cea76d9081c932cbbf8edb44 /include/Stack.hpp | |
| parent | 7af930f2242f933f79dfbb4ddc84bfd532069556 (diff) | |
| download | ft_containers-be2676e56ae0c72321c60c4848ce720ccf095b26.tar.gz ft_containers-be2676e56ae0c72321c60c4848ce720ccf095b26.tar.bz2 ft_containers-be2676e56ae0c72321c60c4848ce720ccf095b26.zip | |
Remaking List, Removed include/, test/ and Makefile
Diffstat (limited to 'include/Stack.hpp')
| -rw-r--r-- | include/Stack.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/Stack.hpp b/include/Stack.hpp deleted file mode 100644 index 64bfc66..0000000 --- a/include/Stack.hpp +++ /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 - |
