We have to build our own vector, map and stack. We also have to implement some other STD tools, such as enable_if, iterator_traits, pair etc..
git clone git@github.com:Bima42/ft_containers.git
make
./containers
- Use the
--help
to display all possibilities
- There is a non exhaustive list of docs that I used to do this project.
- cplusplus and cppreference are just awesome for ft_containers. There is a lot to read.
- Be careful to check when functions were added to the container, some since C++11. You don't have to implement those.
- Vector and functions
- Others
- C++11 functions :
- cbegin(), cend(), crbegin(), crend()
- shrink_to_fit()
- emplace()
- emplace_back()
- Map and functions
- Others
- Old but great
- Map docs
- Binary Tree and Iterator
- BinarySearchTree.h
- Others
- C++11 functions :
- cbegin(), cend(), crbegin(), crend()
- emplace(), emplace_hint()
- C++17 and more :
- insert_or_assign()
- try_emplace()
- extract()
- merge()
- contains()
- Stack and functions
- Others
- C++11 functions :
- emplace()
- swap()
- std_allocator
- std_allocator
- iterator
- reverse_iterator
- enable_if
- enable_if
- is_integral
- source is_integral
- equal
- pair
Thanks to @divinepet and @mli42