Skip to content

Commit de8c1a1

Browse files
committed
book: fix chapter titles and unify formatting
- C++20 (ch10) is now an established standard, so drop the stale 'Outlook'/'展望' framing; the C++26 chapter (ch12) keeps it, since C++26 is the genuinely forthcoming standard. - Simplify the C++23/C++26 titles (drop 'Introduction of'/'简介'). - Unify English chapter titles to the 'Chapter NN: Title' format (chapters 4-9 were missing the colon), in both frontmatter and H1. - Update both toc.md entries to match.
1 parent be2d491 commit de8c1a1

14 files changed

Lines changed: 36 additions & 36 deletions

book/en-us/04-containers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 04 Containers"
2+
title: "Chapter 04: Containers"
33
type: book-en-us
44
order: 4
55
---
66

7-
# Chapter 04 Containers
7+
# Chapter 04: Containers
88

99
[TOC]
1010

book/en-us/05-pointers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 05 Smart Pointers and Memory Management"
2+
title: "Chapter 05: Smart Pointers and Memory Management"
33
type: book-en-us
44
order: 5
55
---
66

7-
# Chapter 05 Smart Pointers and Memory Management
7+
# Chapter 05: Smart Pointers and Memory Management
88

99
[TOC]
1010

book/en-us/06-regex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 06 Regular Expression"
2+
title: "Chapter 06: Regular Expression"
33
type: book-en-us
44
order: 6
55
---
66

7-
# Chapter 06 Regular Expression
7+
# Chapter 06: Regular Expression
88

99
[TOC]
1010

book/en-us/07-thread.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 07 Parallelism and Concurrency"
2+
title: "Chapter 07: Parallelism and Concurrency"
33
type: book-en-us
44
order: 7
55
---
66

7-
# Chapter 07 Parallelism and Concurrency
7+
# Chapter 07: Parallelism and Concurrency
88

99
[TOC]
1010

book/en-us/08-filesystem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 08 File System"
2+
title: "Chapter 08: File System"
33
type: book-en-us
44
order: 8
55
---
66

7-
# Chapter 08 File System
7+
# Chapter 08: File System
88

99
[TOC]
1010

book/en-us/09-others.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Chapter 09 Minor Features
2+
title: Chapter 09: Minor Features
33
type: book-en-us
44
order: 9
55
---
66

7-
# Chapter 09 Minor Features
7+
# Chapter 09: Minor Features
88

99
[TOC]
1010

book/en-us/10-cpp20.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 10 Outlook: Introduction of C++20"
2+
title: "Chapter 10: C++20"
33
type: book-en-us
44
order: 10
55
---
66

7-
# Chapter 10 Outlook: Introduction of C++20
7+
# Chapter 10: C++20
88

99
[TOC]
1010

book/en-us/11-cpp23.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 11: Introduction of C++23"
2+
title: "Chapter 11: C++23"
33
type: book-en-us
44
order: 11
55
---
66

7-
# Chapter 11: Introduction of C++23
7+
# Chapter 11: C++23
88

99
[TOC]
1010

book/en-us/12-cpp26.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "Chapter 12: Outlook: Introduction of C++26"
2+
title: "Chapter 12: C++26 (Outlook)"
33
type: book-en-us
44
order: 12
55
---
66

7-
# Chapter 12: Outlook: Introduction of C++26
7+
# Chapter 12: C++26 (Outlook)
88

99
[TOC]
1010

book/en-us/toc.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
+ rvalue reference and lvalue reference
5252
+ Move semantics
5353
+ Perfect forwarding
54-
- [**Chapter 04 Containers**](./04-containers.md)
54+
- [**Chapter 04: Containers**](./04-containers.md)
5555
+ 4.1 Linear containers
5656
+ `std::array`
5757
+ `std::forward_list`
@@ -62,12 +62,12 @@
6262
+ basic operation
6363
+ runtime indexing `std::variant`
6464
+ merge and iteration
65-
- [**Chapter 05 Smart Pointers and Memory Management**](./05-pointers.md)
65+
- [**Chapter 05: Smart Pointers and Memory Management**](./05-pointers.md)
6666
+ 5.1 RAII and reference counting
6767
+ 5.2 `std::shared_ptr`
6868
+ 5.3 `std::unique_ptr`
6969
+ 5.4 `std::weak_ptr`
70-
- [**Chapter 06 Regular Expression**](./06-regex.md)
70+
- [**Chapter 06: Regular Expression**](./06-regex.md)
7171
+ 6.1 Introduction
7272
+ Ordinary characters
7373
+ Special characters
@@ -76,7 +76,7 @@
7676
+ `std::regex`
7777
+ `std::regex_match`
7878
+ `std::match_results`
79-
- [**Chapter 07 Parallelism and Concurrency**](./07-thread.md)
79+
- [**Chapter 07: Parallelism and Concurrency**](./07-thread.md)
8080
+ 7.1 Basic of Parallelism
8181
+ 7.2 Mutex and Critical Section
8282
+ 7.3 Futures
@@ -85,23 +85,23 @@
8585
+ Atomic Operation
8686
+ Consistency Model
8787
+ Memory Orders
88-
- [**Chapter 08 File System**](./08-filesystem.md)
88+
- [**Chapter 08: File System**](./08-filesystem.md)
8989
+ 8.1 Documents and links
9090
+ 8.2 `std::filesystem`
91-
- [**Chapter 09 Minor Features**](./09-others.md)
91+
- [**Chapter 09: Minor Features**](./09-others.md)
9292
+ 9.1 New Types
9393
+ `long long int`
9494
+ 9.2 `noexcept` and Its Operations
9595
+ 9.3 Literal
9696
+ Raw String Literal
9797
+ Custom String Literal
9898
+ 9.4 Memory Alignment
99-
- [**Chapter 10 Outlook: Introduction of C++20**](./10-cpp20.md)
99+
- [**Chapter 10: C++20**](./10-cpp20.md)
100100
+ 10.1 Concept
101101
+ 10.2 Module
102102
+ 10.3 Range
103103
+ 10.4 Coroutine
104-
- [**Chapter 11 Introduction of C++23**](./11-cpp23.md)
104+
- [**Chapter 11: C++23**](./11-cpp23.md)
105105
+ 11.1 Language features
106106
- Deducing this (explicit object parameter)
107107
- if consteval
@@ -114,7 +114,7 @@
114114
- std::mdspan
115115
- std::flat_map and std::flat_set
116116
- Ranges additions
117-
- [**Chapter 12 Outlook: Introduction of C++26**](./12-cpp26.md)
117+
- [**Chapter 12: C++26 (Outlook)**](./12-cpp26.md)
118118
+ 12.1 Language features
119119
- Static reflection
120120
- Contracts

0 commit comments

Comments
 (0)