Skip to content

jojongx/Mini-STL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-STL

A reimplementation of certain C++ standard library functions.

Running tests

Via CMake (recommended)

cmake -S . -B build                          # configure
cmake --build build                          # compile
ctest --test-dir build --output-on-failure   # run

Via g++ directly

Each container has its own test file at tests/test_<name>.cpp (e.g. test_vector.cpp, test_unique_ptr.cpp). Substitute <name> below:

g++ -std=c++20 -Wall -Wextra -Wpedantic -Iinclude tests/test_<name>.cpp -o test_<name> && ./test_<name>

Leak check (valgrind)

g++ -std=c++20 -g -Iinclude tests/test_<name>.cpp -o test_<name>
valgrind --leak-check=full --show-leak-kinds=all ./test_<name>

About

A reimplementation of certain C++ standard library functions.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors