Skip to content

Implementation of the containers Vector, Stack, Map and Set in C++ Standard Library

Notifications You must be signed in to change notification settings

annafenzl/42-ft_containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-ft_containers

This was a project for 42Heilbronn school's curriculum.

The goal of this project is to implement the STL containers - vector, map, stack and set - as well as some additional utilities.
The containers are implemented in the ft namespace and use std::allocator as the default allocator. They are designed to be compatible with the STL containers and include all the member functions, non-member functions, and overloads of the standard containers.

Implementations

The underlying data structure of map and set is a red-black-tree.

Screen Shot 2023-05-07 at 8 12 52 PM

Description

run make

This creates two executables: ft_containers and std_containers.

by running ./compare.sh the outputs of both binaries are compared.

by running ./speedtest.sh the runtimes of both programs are compared.

All the implemantations are located in the include folder.

About

Implementation of the containers Vector, Stack, Map and Set in C++ Standard Library

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published