mystl is a from-scratch implementation of the C++ Standard Template Library (STL).
It aims to be faithful to the official STL design, covering containers, iterators, and algorithms, while also providing extra data structures and utilities for interview preparation and practice.
- mystl: Implemenation of container, algorithm and iterator faithful to STL.
- test: Unit test written using Google Test (gtest)
- extensions: Useful data structures and algorithms inspired by Coding Interview University (not included in STL).
git clone https://github.com/jjjllxx/mystl.git
cd mystl
mkdir buildcd build
cmake -DMYSTL_TEST=on ..
make -j16cd bin
./mystl_testFor Linux
valgrind --leak-check=full ./mystl_testFor MacOS
export MallocStackLogging=1
leaks --atExit --list -- ./mystl_test✅ STL-like containers (vector, map, set, unordered_map, etc.)
✅ STL-compliant iterators
✅ Common algorithms (sort, find, etc.)
✅ Unit tested with GoogleTest
⚡ Extensions: useful interview-style data structures (not in STL)