Skip to content

Clones of some containers from the standard C++ library, made for learning purposes (C++98)

Notifications You must be signed in to change notification settings

aurelien-brabant/ft_containers

Repository files navigation

ft_containers

Roadmap

  • iterator_traits
  • reverse_iterator
  • enable_if
  • lexicographical_compare
  • equal
  • pair
  • vector
  • map
  • stack

Testing

Containers can be tested by performing a simple make command at the root of the repository. That command will generate two binaries named std and ft. In these two binaries are compiled the tests that can be found under the ./test directory, the exact same tests being compiled with the original implementation from the STL and with the home-made ones.

My castorno testing framework is used to produce an elegant output and record execution times.

Relevant execution time differences between the two binaries can be reported by simply executing the compare_execution_time.sh script, which will highlight these differences. N/A is displayed if for a given test, the execution time difference is below 1 ms. ./compare_execution_time.sh | grep -iv 'n/a' can be performed if these lines are not wanted.

More testing

I essentially used mli's tester that covers a lot more than my own tests (definitely something I should fix).

About

Clones of some containers from the standard C++ library, made for learning purposes (C++98)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages