C++ Cheat Sheets
Use these pages as a rapid lookup set while coding.
Coverage
- Core syntax and expressions
- Control flow and functions
- Object-oriented programming
- Templates and generic programming
- Containers, iterators, algorithms, and ranges
- RAII, smart pointers, memory, and concurrency
- Tooling, testing, and C++20/C++23 features
- Modern error handling, modules, coroutines, and value-based APIs
Suggested use
Pick one page for the concept you are using today, then jump into the tutorial section when you want fuller explanations and larger examples.
The newest pages emphasize the parts of modern C++ that are easy to miss in older references: std::expected, std::optional, std::variant, modules, coroutines, std::jthread, std::span, and modern formatting.
There are also focused quick references for chrono and formatting, advanced ranges and views, and synchronization primitives beyond std::mutex.