Practicing some modern or advanced features and skills with some portable code snippets. Also collecting some best or good practices of cpp project.
-
singleton
-
lambda function
-
callback
-
chrono timer: use <chrono> to implement a timer to compute the time of a program cost.
-
diy: implement some toys of for study purpose
- implementing smart ptr
- unique_ptr
- dsa: data structure and implementation
- segment tree
- implementing smart ptr
This project uses catchorg/Catch2 as unittest framework, which is as a git submodule.
git clone --recurse-submodules https://github.com/charles-sun0v0/PracticeCpp
Alternatively, the user could git clone
this then cd 3rdparty
and run git submodule init && git submodule update
to fetch dependencies.
This project uses modern CMake concepts which is target-based.
cd <path-to-PracticeCpp>
cmake -S . -B build
The code is written for demonize or studying purpose without adequate tests. Therefore, it should not be applied to production directly.