42 project, the implementation of templated classes that behave exactly like the C++ 98 STL containers.
Mandatory part : 100/100
Bonus : 25/25
The project includes the following containers :
- Vector
- List
- Map
- Stack
- Queue
- Deque (bonus)
- Multimap (bonus)
- Set (bonus)
- Multiset (bonus)
The containers are templated, meaning you can use them with any type, just like you would any other STL containers. Just include the .hpp corresponding to the container you want to use, and use it!
The difference is the namespace ; where you would call std::vector<T>
, you now call ft::vector<T>
.
The testers available in the repository :
-
mli's containers_test (very useful, much recommended), to which I contributed by adding the tests for deque, multimap, set and multiset (you can find them on his repo)