Skip to content

Commit 4a7a693

Browse files
committed
book: group the table of contents into three Parts
Organize the contents into Part I (Language Core, ch1-3), Part II (The Standard Library, ch4-9), Part III (By Standard Version, ch10-12), plus an Appendices group, each with a one-line intro. The theme renders a flat sidebar (no Part concept), so the grouping lives in the canonical toc.md contents page.
1 parent f0804bd commit 4a7a693

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

book/en-us/toc.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
## Table of Contents
44

55
- [**Preface**](./00-preface.md)
6-
- [**Chapter 01 Towards Modern C++**](./01-intro.md)
6+
### Part I — Language Core
7+
8+
*Enhancements to the language itself: how you declare and deduce types, and what happens at runtime.*
9+
10+
- [**Chapter 01: Towards Modern C++**](./01-intro.md)
711
+ 1.1 Deprecated Features
812
+ 1.2 Compatibility with C
913
+ Further Readings
@@ -51,6 +55,10 @@
5155
+ rvalue reference and lvalue reference
5256
+ Move semantics
5357
+ Perfect forwarding
58+
### Part II — The Standard Library
59+
60+
*Batteries included: containers, smart pointers, regular expressions, concurrency, and the filesystem.*
61+
5462
- [**Chapter 04: Containers**](./04-containers.md)
5563
+ 4.1 Linear containers
5664
+ `std::array`
@@ -96,6 +104,10 @@
96104
+ Raw String Literal
97105
+ Custom String Literal
98106
+ 9.4 Memory Alignment
107+
### Part III — By Standard Version
108+
109+
*A tour of what each recent standard adds: C++20, C++23, and the forthcoming C++26.*
110+
99111
- [**Chapter 10: C++20**](./10-cpp20.md)
100112
+ 10.1 Concept
101113
+ 10.2 Module
@@ -125,6 +137,8 @@
125137
- std::execution
126138
- Saturation arithmetic
127139
- Other library facilities
140+
### Appendices
141+
128142
- [**Appendix 1: Further Study Materials**](./appendix1.md)
129143
- [**Appendix 2: Modern C++ Best Practices**](./appendix2.md)
130144
- [**Appendix 3: Modern C++ Feature Index**](./appendix3.md)

book/zh-cn/toc.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
## 目录
44

55
- [**序言**](./00-preface.md)
6+
### 第一部分 语言核心
7+
8+
*语言自身的强化:如何声明与推导类型,以及运行期的增强。*
9+
610
- [**第 1 章 迈向现代 C++**](./01-intro.md)
711
+ 1.1 被弃用的特性
812
+ 1.2 与 C 的兼容性
@@ -51,6 +55,10 @@
5155
+ 右值引用和左值引用
5256
+ 移动语义
5357
+ 完美转发
58+
### 第二部分 标准库
59+
60+
*开箱即用的设施:容器、智能指针、正则表达式、并发与文件系统。*
61+
5462
- [**第 4 章 标准库: 容器**](./04-containers.md)
5563
+ 4.1 线性容器
5664
+ `std::array`
@@ -96,6 +104,10 @@
96104
+ 原始字符串字面量
97105
+ 自定义字面量
98106
+ 9.4 内存对齐
107+
### 第三部分 按标准版本
108+
109+
*概览每个较新标准带来的内容:C++20、C++23 与即将到来的 C++26。*
110+
99111
- [**第 10 章 C++20**](./10-cpp20.md)
100112
+ 10.1 概念与约束
101113
+ 10.2 模块
@@ -125,6 +137,8 @@
125137
- std::execution
126138
- 饱和算术
127139
- 其他库设施
140+
### 附录
141+
128142
- [**附录 1:进一步阅读的学习材料**](./appendix1.md)
129143
- [**附录 2:现代 C++ 的最佳实践**](./appendix2.md)
130144
- [**附录 3:现代 C++ 特性索引**](./appendix3.md)

0 commit comments

Comments
 (0)