Skip to content

Designed C++ container classes (vector/list/map) from ground up and free from reliance existing libraries, using template metaprogramming techniques, providing essential data structures.

Notifications You must be signed in to change notification settings

shimazadeh/Ft_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ft_container

Designed C++ container classes (vector/list/map) from ground up and free from reliance existing libraries, using template metaprogramming techniques, that behave exactly like the C++ 98 STL containers.

Requirmenet and Limitations

The containers in Ft_container adhere to the following requirements:

  • They must have all public member functions from C++98.
  • The corresponding iterators must also be implemented.
  • The project includes the following containers:
    • Vector
    • Map
    • Stack

How to use:

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, you now call ft::vector. Example of use:


  #include "includes/vector.hpp"
  #include "includes/map.hpp"
  #include "includes/stack.hpp"
  
  // Containers are in the 'ft' namespace
  ft::vector vector;
  ft::map map;
  ft:stack stack;

Sources:

Here are some useful references for working with C++ containers:

Testers:

You can use these testers to validate the correctness of your containers:

About

Designed C++ container classes (vector/list/map) from ground up and free from reliance existing libraries, using template metaprogramming techniques, providing essential data structures.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published