This cheatsheet provides a curated collection of C and C++ code snippets covering modern language standards, system programming, and development tools. From basic syntax to advanced features like coroutines, templates, and memory management, each example is designed to be clear, practical, and ready to use. All code is tested and compiles cleanly, so you can focus on learning and adapting rather than debugging reference material.
- C++ Basics
- Resource Management
- String
- Container
- Iterator
- Template
- Casting
- Constexpr
- Lambda
- Concepts
- Requires
- Time
- Smart Pointers
- Return Value Optimization
- Algorithm
- Coroutine
- Modules
- CMake
- CUDA Basics
- CUDA C++ (libcu++)
- Thrust
- Cooperative Groups
- Memory Visibility
- Pipelines
- GPU-GPU Communication