# changkun/modern-cpp-tutorial architecture

> Architecture diagram of the GitHub repository changkun/modern-cpp-tutorial, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/changkun/modern-cpp-tutorial
- Repository: https://github.com/changkun/modern-cpp-tutorial

## Overview

This repository is a modern C++ learning resource: readers choose topics, study the tutorial, and consult chapter-organized examples and exercises. The README also describes GitHub, PDF, EPUB, and website reading options. The supplied tree does not include the book-content files, so the graph represents its documented learning flow and sampled supporting implementations without inferring how unsampled publishing components connect.

Main entry points: [`code/2`](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/2) (Language fundamentals), [`code/3`](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/3) (Lambdas and moves), [`code/4`](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/4) (Containers and memory), [`code/5`](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/5) (Smart pointers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning resource"]
  node_tutorial["Modern C++ tutorial"]
end

subgraph group_examples["C++ examples"]
  node_language["Language fundamentals"]
  node_lambdas["Lambdas and moves"]
  node_containers["Containers and memory"]
  node_ownership["Smart pointers"]
  node_regex["Regular expressions<br/>[6.1.regex.cpp]"]
  node_concurrency["Concurrency"]
  node_filesystem["Filesystem<br/>[8.1.filesystem.cpp]"]
  node_language_runtime["Language details"]
  node_newer_cpp["C++20–26 features"]
  node_recent_features["Recent features"]
  node_future_features["C++26 examples"]
end

subgraph group_exercises["Exercises"]
  node_web_exercise["HTTP server exercise<br/>[server.base.hpp]"]
  node_thread_exercise["Thread-pool exercise<br/>[thread_pool.hpp]"]
end

subgraph group_formats["Reading formats"]
  node_website["Website reader<br/>[book.js]"]
  node_pdf["PDF reader<br/>[aggregator.py]"]
  node_epub["EPUB reader<br/>[filter.py]"]
end

node_reader(("Reader"))

node_reader -->|"studies"| node_tutorial
node_tutorial -->|"consults examples"| node_language
node_tutorial -->|"consults examples"| node_lambdas
node_tutorial -->|"consults examples"| node_containers
node_tutorial -->|"consults examples"| node_ownership
node_tutorial -->|"consults examples"| node_regex
node_tutorial -->|"consults examples"| node_concurrency
node_tutorial -->|"consults examples"| node_filesystem
node_tutorial -->|"consults examples"| node_language_runtime
node_tutorial -->|"consults examples"| node_newer_cpp
node_tutorial -->|"consults examples"| node_recent_features
node_tutorial -->|"consults examples"| node_future_features
node_tutorial -->|"practices concepts"| node_web_exercise
node_tutorial -->|"practices concepts"| node_thread_exercise
node_reader -->|"reads online"| node_website
node_reader -->|"reads PDF"| node_pdf
node_reader -->|"reads EPUB"| node_epub

click node_language "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/2"
click node_lambdas "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/3"
click node_containers "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/4"
click node_ownership "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/5"
click node_regex "https://github.com/changkun/modern-cpp-tutorial/blob/master/code/6/6.1.regex.cpp"
click node_concurrency "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/7"
click node_filesystem "https://github.com/changkun/modern-cpp-tutorial/blob/master/code/8/8.1.filesystem.cpp"
click node_language_runtime "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/9"
click node_newer_cpp "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/10"
click node_recent_features "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/11"
click node_future_features "https://github.com/changkun/modern-cpp-tutorial/tree/master/code/12"
click node_web_exercise "https://github.com/changkun/modern-cpp-tutorial/blob/master/exercises/6/server.base.hpp"
click node_thread_exercise "https://github.com/changkun/modern-cpp-tutorial/blob/master/exercises/7/7.1/thread_pool.hpp"
click node_website "https://github.com/changkun/modern-cpp-tutorial/blob/master/website/themes/moderncpp/source/modern-cpp/js/book.js"
click node_pdf "https://github.com/changkun/modern-cpp-tutorial/blob/master/pdf/en-us/aggregator.py"
click node_epub "https://github.com/changkun/modern-cpp-tutorial/blob/master/epub/en-us/filter.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tutorial toneBlue
class node_language,node_lambdas,node_containers,node_ownership,node_regex,node_concurrency,node_filesystem,node_language_runtime,node_newer_cpp,node_recent_features,node_future_features toneAmber
class node_web_exercise,node_thread_exercise toneMint
class node_website,node_pdf,node_epub toneRose
class node_reader toneIndigo
```

## Components

### Learning resource

- **Modern C++ tutorial**

### C++ examples

- [Language fundamentals](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/2): `code/2`
- [Lambdas and moves](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/3): `code/3`
- [Containers and memory](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/4): `code/4`
- [Smart pointers](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/5): `code/5`
- [Regular expressions](https://github.com/changkun/modern-cpp-tutorial/blob/master/code/6/6.1.regex.cpp): `code/6/6.1.regex.cpp`
- [Concurrency](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/7): `code/7`
- [Filesystem](https://github.com/changkun/modern-cpp-tutorial/blob/master/code/8/8.1.filesystem.cpp): `code/8/8.1.filesystem.cpp`
- [Language details](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/9): `code/9`
- [C++20–26 features](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/10): `code/10`
- [Recent features](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/11): `code/11`
- [C++26 examples](https://github.com/changkun/modern-cpp-tutorial/tree/master/code/12): `code/12`

### Exercises

- [HTTP server exercise](https://github.com/changkun/modern-cpp-tutorial/blob/master/exercises/6/server.base.hpp): `exercises/6/server.base.hpp`
- [Thread-pool exercise](https://github.com/changkun/modern-cpp-tutorial/blob/master/exercises/7/7.1/thread_pool.hpp): `exercises/7/7.1/thread_pool.hpp`

### Reading formats

- [Website reader](https://github.com/changkun/modern-cpp-tutorial/blob/master/website/themes/moderncpp/source/modern-cpp/js/book.js): `website/themes/moderncpp/source/modern-cpp/js/book.js`
- [PDF reader](https://github.com/changkun/modern-cpp-tutorial/blob/master/pdf/en-us/aggregator.py): `pdf/en-us/aggregator.py`
- [EPUB reader](https://github.com/changkun/modern-cpp-tutorial/blob/master/epub/en-us/filter.py): `epub/en-us/filter.py`

### Other components

- **Reader**

## Connections

- Reader → Modern C++ tutorial: studies (evidence: `README.md`)
- Modern C++ tutorial → Language fundamentals: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Lambdas and moves: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Containers and memory: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Smart pointers: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Regular expressions: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Concurrency: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Filesystem: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Language details: consults examples (evidence: `README.md`)
- Modern C++ tutorial → C++20–26 features: consults examples (evidence: `README.md`)
- Modern C++ tutorial → Recent features: consults examples (evidence: `README.md`)
- Modern C++ tutorial → C++26 examples: consults examples (evidence: `README.md`)
- Modern C++ tutorial → HTTP server exercise: practices concepts (evidence: `README.md`)
- Modern C++ tutorial → Thread-pool exercise: practices concepts (evidence: `README.md`)
- Reader → Website reader: reads online (evidence: `README.md`)
- Reader → PDF reader: reads PDF (evidence: `README.md`)
- Reader → EPUB reader: reads EPUB (evidence: `README.md`)
