# light-city/cplusplusthings architecture

> Architecture diagram of the GitHub repository light-city/cplusplusthings, 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/light-city/cplusplusthings
- Repository: https://github.com/light-city/cplusplusthings

## Overview

C++ 那些事 is a C++ learning repository: learners use its organized examples and exercises to progress from fundamentals toward modern C++, design, and concurrency topics. The examples are largely independent teaching artifacts, not a single application runtime, so the graph shows documented learning entry points rather than an invented execution pipeline. README.md documents the major subject areas; source excerpts mainly show standalone examples, so internal call relationships are not inferred.

Main entry points: [`basic_content`](https://github.com/light-city/cplusplusthings/tree/master/basic_content) (Core Language), [`cpp2.0/cpp11`](https://github.com/light-city/cplusplusthings/tree/master/cpp2.0/cpp11) (C++11 Features), [`learn_class/modern_cpp_30`](https://github.com/light-city/cplusplusthings/tree/master/learn_class/modern_cpp_30) (Modern C++ Course), [`practical_exercises/10_day_practice`](https://github.com/light-city/cplusplusthings/tree/master/practical_exercises/10_day_practice) (Ten-Day Practice)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["C++ Fundamentals"]
  node_basic["Core Language"]
  node_classes["Class Concepts"]
end

subgraph group_modern["Modern C++"]
  node_cpp11["C++11 Features<br/>[cpp11]"]
  node_modern_course["Modern C++ Course"]
end

subgraph group_practice["Practice"]
  node_ten_day["Ten-Day Practice"]
  node_key_exercises["Key Exercises"]
end

subgraph group_advanced["Advanced Topics"]
  node_design_patterns["Design Patterns"]
  node_concurrency["Concurrency"]
  node_effective_cpp["Effective C++"]
end

subgraph group_idioms_tools["Idioms and Tools"]
  node_stl_tools["Container Output"]
  node_idioms["C++ Idioms"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_basic
node_learner -->|"practices"| node_ten_day
node_learner -->|"practices"| node_key_exercises
node_learner -->|"studies"| node_cpp11
node_learner -->|"studies"| node_modern_course
node_learner -->|"studies"| node_design_patterns
node_learner -->|"studies"| node_concurrency
node_learner -->|"studies"| node_effective_cpp
node_learner -->|"studies"| node_idioms
node_learner -->|"uses"| node_stl_tools

click node_basic "https://github.com/light-city/cplusplusthings/tree/master/basic_content"
click node_classes "https://github.com/light-city/cplusplusthings/tree/master/basic_content/const/class_const"
click node_ten_day "https://github.com/light-city/cplusplusthings/tree/master/practical_exercises/10_day_practice"
click node_key_exercises "https://github.com/light-city/cplusplusthings/tree/master/practical_exercises/key_exercises"
click node_cpp11 "https://github.com/light-city/cplusplusthings/tree/master/cpp2.0/cpp11"
click node_modern_course "https://github.com/light-city/cplusplusthings/tree/master/learn_class/modern_cpp_30"
click node_design_patterns "https://github.com/light-city/cplusplusthings/tree/master/design_pattern"
click node_concurrency "https://github.com/light-city/cplusplusthings/tree/master/concurrency"
click node_effective_cpp "https://github.com/light-city/cplusplusthings/tree/master/effective_cpp"
click node_stl_tools "https://github.com/light-city/cplusplusthings/tree/master/tool/output"
click node_idioms "https://github.com/light-city/cplusplusthings/tree/master/codingStyleIdioms"

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_basic,node_classes toneBlue
class node_cpp11,node_modern_course toneAmber
class node_ten_day,node_key_exercises toneMint
class node_design_patterns,node_concurrency,node_effective_cpp toneRose
class node_stl_tools,node_idioms,node_learner toneIndigo
```

## Components

### C++ Fundamentals

- [Core Language](https://github.com/light-city/cplusplusthings/tree/master/basic_content): `basic_content`
- [Class Concepts](https://github.com/light-city/cplusplusthings/tree/master/basic_content/const/class_const): `basic_content/const/class_const`

### Modern C++

- [C++11 Features](https://github.com/light-city/cplusplusthings/tree/master/cpp2.0/cpp11): `cpp2.0/cpp11`
- [Modern C++ Course](https://github.com/light-city/cplusplusthings/tree/master/learn_class/modern_cpp_30): `learn_class/modern_cpp_30`

### Practice

- [Ten-Day Practice](https://github.com/light-city/cplusplusthings/tree/master/practical_exercises/10_day_practice): `practical_exercises/10_day_practice`
- [Key Exercises](https://github.com/light-city/cplusplusthings/tree/master/practical_exercises/key_exercises): `practical_exercises/key_exercises`

### Advanced Topics

- [Design Patterns](https://github.com/light-city/cplusplusthings/tree/master/design_pattern): `design_pattern`
- [Concurrency](https://github.com/light-city/cplusplusthings/tree/master/concurrency): `concurrency`
- [Effective C++](https://github.com/light-city/cplusplusthings/tree/master/effective_cpp): `effective_cpp`

### Idioms and Tools

- [Container Output](https://github.com/light-city/cplusplusthings/tree/master/tool/output): `tool/output`
- [C++ Idioms](https://github.com/light-city/cplusplusthings/tree/master/codingStyleIdioms): `codingStyleIdioms`

### Other components

- **Learner**

## Connections

- Learner → Core Language: studies (evidence: `README.md`)
- Learner → Ten-Day Practice: practices (evidence: `README.md`)
- Learner → Key Exercises: practices (evidence: `README.md`)
- Learner → C++11 Features: studies (evidence: `README.md`)
- Learner → Modern C++ Course: studies (evidence: `README.md`)
- Learner → Design Patterns: studies (evidence: `README.md`)
- Learner → Concurrency: studies (evidence: `README.md`)
- Learner → Effective C++: studies (evidence: `README.md`)
- Learner → C++ Idioms: studies (evidence: `README.md`)
- Learner → Container Output: uses (evidence: `README.md`)
