Complete Guide to Mastering Modern C++ (C++23)
This documentation complements the practical code in src/, providing in-depth theoretical foundations, learning paths, and best practices for mastering C++.
Philosophy: Learn from first principles - understand the machine, then build abstractions.
docs/
├── 00_foundations/ # Theoretical foundations
├── 01_learning_path/ # Learning roadmap & milestones
├── 02_memory_mastery/ # Deep dive into memory management
├── 03_zero_cost_abstractions/ # Understanding zero-cost abstractions
├── 04_stl_mastery/ # Standard Template Library mastery
├── 05_modern_cpp/ # Modern C++ features (11/14/17/20/23)
├── 06_best_practices/ # Code style, design patterns, safety
├── 07_toolchain/ # Build, debug, optimize
├── 08_advanced_topics/ # Concurrency, graphics, embedded
├── 09_interviews/ # Interview prep & career
├── cheatsheets/ # Quick reference guides
├── exercises/ # Practice problems
├── resources/ # Books, videos, learning materials
└── projects/ # Project ideas and templates
-
Start Here:
00_foundations/01_first_principles.md- Understand what makes C++ unique
- Learn the three pillars: memory control, compile-time computation, zero-cost abstraction
-
Your Path:
01_learning_path/01_roadmap.md- Complete learning roadmap
- Skill milestones
- Practice projects
-
Learn by Doing: Combine docs with
src/code- Read theory → Write code → Experiment
- Read
00_foundations/01_first_principles.md - Follow the learning path in
01_learning_path/ - Reference docs while completing code lessons
- Deep dive into specific topics in
02-08/ - Use
06_best_practices/to improve code quality - Study real-world patterns
- Master advanced topics in
08_advanced_topics/ - Prepare for interviews with
09_interviews/ - Contribute to project development
| Docs | Code | Status |
|---|---|---|
02_memory_mastery/ |
src/01_memory_control/ |
✅ Complete |
03_zero_cost_abstractions/ |
src/02_zero_cost_abstraction/ |
📝 Planned |
04_stl_mastery/ |
src/03_toolbox/01_stl/ |
📝 Planned |
05_modern_cpp/ |
src/03_toolbox/02_modern_features/ |
📝 Planned |
07_toolchain/ |
src/03_toolbox/03_compilation/ |
📝 Planned |
| Module | Progress | Lessons |
|---|---|---|
| Memory Control | 100% | 16 lessons |
| Module | Progress |
|---|---|
| Zero-Cost Abstraction | 0% |
| Toolbox | 0% |
00_foundations/01_first_principles.md00_foundations/02_hardware_fundamentals.md01_learning_path/01_roadmap.md
- Complete
src/01_memory_control/lessons - Read
02_memory_mastery/documentation - Practice with projects
- Study class design and move semantics
- Learn smart pointers inside out
- Template fundamentals
- Master STL containers and algorithms
- Learn modern C++ features
- Understand build systems
"C++ is about hardware mapping and efficient abstraction"
- Understand memory layout
- Control object lifetime
- Leverage compile-time computation
- Pay only for what you use
-
Theory → Practice → Mastery
- Read concept
- Write code
- Experiment and measure
-
From Low-Level to High-Level
- Start with memory
- Add abstractions
- Build complex systems
-
Always Question "Why?"
- Why use this feature?
- What's the cost?
- What's the alternative?
-
Clone the repository:
git clone https://github.com/Clearzero22/cpp-step-by-step cd cpp-step-by-step -
Read the first principles:
docs/00_foundations/01_first_principles.md
-
Start coding:
cmake -G Ninja -B buildcmake --build build./build/bin/lesson01_stack_heap.exe
-
Follow the path:
docs/01_learning_path/01_roadmap.md
Quick reference guides for C++ syntax and features:
- C++ Syntax - Variable, functions, classes, templates
- STL Containers - Container selection and usage
- Modern C++ - C++11 to C++23 features at a glance
Perfect for quick lookups while coding!
Practice problems organized by difficulty:
- Basics (01_basics/) - Variables, control flow, functions
- Intermediate (02_intermediate/) - Memory, OOP, templates
- Advanced - Concurrency, systems, performance
25+ exercises with solutions and test cases.
Curated learning materials:
- Books - Essential C++ reading list
- Videos - YouTube channels, conference talks
- Online - Interactive tutorials, references
Everything you need to supplement your learning.
Build real applications to practice your skills:
- CLI Apps - Console-based applications
- Games - Interactive game projects
- Data Structures - Implement from scratch
16+ project ideas with templates and guidelines.
Status: 📝 Under Active Development Version: 1.0.0 Last Updated: 2026-02-03