Skip to content

recreated some STL containers from C++: stack, map and vector

Notifications You must be signed in to change notification settings

lbricio/containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

containers

recreated STL containers: stack, map and vector

image

Include the containers headers in your code:

#include "/containers/vector.hpp"
#include "/containers/map.hpp"
#include "/containers/stack.hpp"

Use namespace ft instead default std to use:

ft::vector<int> myvector;
ft::vector<int> > mystack
ft::map<int, char> my_map;

for (int i = 0; i < 10; i++) {
  my_map.insert(ft::pair<int, char>(i, 'a'));
}

About

recreated some STL containers from C++: stack, map and vector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published