Skip to content

Commit 407148c

Browse files
committed
update: prepare C++20
1 parent 7204a23 commit 407148c

28 files changed

+66
-67
lines changed

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 提交 Issue
66

7-
『C++ 11/14/17』的 issue 用于追踪书中存在的原则性的描述错误、存在的 `typo` 错误,以及向本书作者提问等。
7+
『C++ 11/14/17/20』的 issue 用于追踪书中存在的原则性的描述错误、存在的 `typo` 错误,以及向本书作者提问等。
88

99
- 通常情况下,你可能会发现书中某个段落存在错别字、语义错误、文法错误等。
1010
这都是 `typo` 错误。如果该错误已经对你的阅读造成了一定障碍,
@@ -24,7 +24,7 @@
2424

2525
## 提交 Pull request
2626

27-
『C++ 11/14/17』是一本开源书籍,任何人都可以参与贡献自己 PR。但在提交 PR 之前请仔细阅读下面的说明:
27+
『C++ 11/14/17/20』是一本开源书籍,任何人都可以参与贡献自己 PR。但在提交 PR 之前请仔细阅读下面的说明:
2828

2929
- 当你认为需要提交一个 PR 时,请确保 [issue 列表](https://github.com/changkun/modern-cpp-tutorial/issues)中,已经包含了你想要解决的问题。
3030
如果没有,请参考**提交 Issue** 一节中的描述,提交你的 issue,再提交你的 PR。

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2016 - Present Changkun Ou <[email protected]>
3+
Copyright (c) 2016 - 2019 Changkun Ou <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README-en-us.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<img src="assets/cover-2nd-en.png" alt="logo" height="600" align="right" />
22

3-
# C++11/14/17 On the Fly
3+
# C++11/14/17/20 On the Fly
44

55
![](https://img.shields.io/badge/version-v2-green.svg) [![](https://img.shields.io/badge/language-%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87-red.svg)](./README.md) [![](https://img.shields.io/badge/language-English-blue.svg)](./README-en-us.md) [![](https://img.shields.io/badge/$-donate-ff69b4.svg)](./assets/donate.md) [![](https://img.shields.io/badge/chat-community-667ed5.svg)](./assets/community.md)
66

7-
8-
> This book is adapting to C++17 and translating to English.
9-
107
## Purpose
118

129
The book claims "On the Fly". Its intent is to provide a comprehensive introduction to the relevant features regarding modern C++ (before 2020s).
@@ -15,7 +12,7 @@ Readers should aware that all of these features are not required. It should be l
1512

1613
At the same time, instead of grammar-only, the book introduces the historical background as simple as possible of its technical requirements, which provides great help in understanding why these features comes out.
1714

18-
In addition, The author would like to encourage that readers should be able to use C++17 directly in their new projects and migrate their old projects to C++17 gradually after read the book.
15+
In addition, The author would like to encourage that readers should be able to use modern C++ directly in their new projects and migrate their old projects to modern C++ gradually after read the book.
1916

2017
## Targets
2118

@@ -51,4 +48,4 @@ The author has limited time and language skills. If readers find any mistakes of
5148

5249
## Licenses
5350

54-
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work is written by [Ou Changkun](https://changkun.de) and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>. The code of this repository is open sourced under the [MIT license](./LICENSE).
51+
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work was written by [Ou Changkun](https://changkun.de) and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>. The code of this repository is open sourced under the [MIT license](./LICENSE).

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<img src="assets/cover-2nd.png" alt="logo" height="600" align="right" />
1+
<img src="assets/cover-2nd.png" alt="logo" height="550" align="right" />
22

3-
# 《高速上手 C++11/14/17》
3+
# 《高速上手 C++11/14/17/20
44

55
[![](https://img.shields.io/badge/language-%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87-red.svg)](./README.md) [![](https://img.shields.io/badge/language-English-blue.svg)](./README-en-us.md)
66
[![](https://img.shields.io/badge/%C2%A5-%E8%B5%9E%E5%8A%A9-ff69b4.svg)](./assets/donate.md)
@@ -11,7 +11,7 @@
1111

1212
同时,本书在介绍这些特性的过程中,尽可能简单明了的介绍了这些特性产生的历史背景和技术需求,这为理解这些特性、运用这些特性提供了很大的帮助。
1313

14-
此外,笔者希望读者在阅读本书后,能够努力在新项目中直接使用 C++17,并努力将旧项目逐步迁移到 C++17。也算是笔者为推进现代 C++ 的普及贡献了一些绵薄之力。
14+
此外,笔者希望读者在阅读本书后,能够努力在新项目中直接使用现代 C++,并努力将旧项目逐步迁移到现代 C++。也算是笔者为推进现代 C++ 的普及贡献了一些绵薄之力。
1515

1616
## 目标读者
1717

assets/cover-2nd-en.afphoto

10 KB
Binary file not shown.

assets/cover-2nd-en.png

12.4 KB
Loading

assets/cover-2nd.afphoto

2.38 MB
Binary file not shown.

assets/cover-2nd.png

93.8 KB
Loading

book/en-us/00-preface.md

Whitespace-only changes.

book/en-us/toc.md

+30-28
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# C++ 11/14/17 On The Fly
1+
# C++ 11/14/17/20 On The Fly
22

33
## Table of Contents
44

55
- [**Preface**](./00-preface.md)
6-
- [**Chapter 01 Towards C++11/14/17**](./01-intro.md)
6+
- [**Chapter 01 Towards Modern C++**](./01-intro.md)
77
+ 1.1 Deprecated Features
88
+ 1.2 Compatibility with C
99
+ Further Readings
@@ -39,69 +39,71 @@
3939
- Explicit delete default function
4040
- Strongly typed enumerations
4141
- [**Chapter 03 Language Runtime Enhancements**](./03-runtime.md)
42-
+ Lambda expression
42+
+ 3.1 Lambda expression
4343
+ Basics
4444
+ Value capture
4545
+ Reference capture
4646
+ Implicit capture
4747
+ Expression capture
4848
+ Generic lambda
49-
+ Function object wrapper
49+
+ 3.2 Function object wrapper
5050
+ std::function
5151
+ std::bind/std::placeholder
52-
+ rvalue reference
52+
+ 3.3 rvalue reference
5353
+ lvalue, rvalue, prvalue, xvalue
5454
+ rvalue reference & lvalue reference
5555
+ Move semantics
5656
+ Perfect forwarding
5757
- [**Chapter 04 Sandard Library: Containers**](./04-containers.md)
58-
+ `std::array`
59-
+ `std::forward_list`
60-
+ `std::unordered_set`
61-
+ `std::unordered_map`
62-
+ `std::tuple`
58+
+ 4.1 `std::array` and `std::forward_list`
59+
+ 4.2 Unordered containers
60+
+ `std::unordered_set`
61+
+ `std::unordered_map`
62+
+ 4.3 Tuples `std::tuple`
6363
+ basic operation
6464
+ runtime indexing
6565
+ merge and iteration
6666
- [**Chapter 05 Sandard Library: Pointers**](./05-pointers.md)
67-
+ RAII and reference counting
68-
+ `std::shared_ptr`
69-
+ `std::unique_ptr`
70-
+ `std::weak_ptr`
67+
+ 5.1 RAII and reference counting
68+
+ 5.2 `std::shared_ptr`
69+
+ 5.3 `std::unique_ptr`
7170
- [**Chapter 06 Sandard Library: Regular Expression**](./06-regex.md)
72-
+ Regular Expression Introduction
71+
+ 6.1 Regular Expression Introduction
7372
+ Normal characters
7473
+ Special characters
7574
+ Determinative
76-
+ `std::regex`
75+
+ 6.2 `std::regex` and related
7776
+ `std::regex`
7877
+ `std::regex_match`
7978
+ `std::match_results`
8079
- [**Chapter 07 Sandard Library: Threads and Concurrency**](./07-thread.md)
81-
+ `std::thread`
82-
+ `std::mutex`
83-
+ `std::unique_lock`
84-
+ `std::future`
85-
+ `std::packaged_task`
86-
+ `std::condition_variable`
80+
+ 7.1 `std::thread`
81+
+ 7.2 `std::mutex` and `std::unique_lock`
82+
+ 7.3 `std::future` and `std::packaged_task`
83+
+ 7.4 `std::condition_variable`
84+
+ 7.5 `std::atomic` and memory order
85+
+ 7.6 Transactional memory
8786
- [**Chapter 08 Sandard Library: File System**](./08-filesystem.md)
87+
+ 8.1 Documents and links
88+
+ 8.2 `std::filesystem`
8889
- [**Chapter 09 Minor Features**](./09-others.md)
89-
+ New Types
90+
+ 9.1 New Types
9091
+ `long long int`
91-
+ `noexcept`
92-
+ Literal
92+
+ 9.2 `noexcept` and its operates
93+
+ 9.3 Literal
9394
+ Raw string literal
9495
+ Custom string literal
95-
+ Math Library
96+
+ 9.4 Math Library
9697
- [**Chapter 10 Outlook: Introduction of C++20**](./10-cpp20.md)
9798
+ Concept
9899
+ Range
99100
+ Module
100101
+ Coroutine
101-
- [**Appendix: Further Study Materials**](./appendix.md)
102+
- [**Appendix 1: Further Study Materials**](./appendix1.md)
103+
- [**Appendix 2: Modern C++ Best Practices**](./appendix2.md)
102104

103105
Table of Content | Last Chapter | [Next Chapter: Preface](./00-preface.md)
104106

105107
## Licenses
106108

107-
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work is written by [Ou Changkun](https://changkun.de) and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>. The code of this repository is open sourced under the [MIT license](./LICENSE).
109+
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work was written by [Ou Changkun](https://changkun.de) and licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>. The code of this repository is open sourced under the [MIT license](./LICENSE).

book/zh-cn/00-preface.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ order: 0
99
## 引言
1010

1111
C++ 是一个用户群体相当大的语言。从 C++98 的出现到 C++11 的正式定稿经历了长达十年多之久的积累。C++14/17 则是作为对 C++11 的重要补充和优化,所有这些新标准中扩充的特性,给 C++ 这门语言注入了新的活力。
12-
那些还在坚持使用**传统 C++**(本书把 C++98 及其之前的 C++ 特性均称之为传统 C++)而未接触过 C++11/14/17 的 C++ 程序员在见到诸如 Lambda 表达式这类全新特性时,甚至会流露出『学的不是同一门语言』的惊叹之情。
12+
那些还在坚持使用**传统 C++**(本书把 C++98 及其之前的 C++ 特性均称之为传统 C++)而未接触过 C++11/14/17/20 的 C++ 程序员在见到诸如 Lambda 表达式这类全新特性时,甚至会流露出『学的不是同一门语言』的惊叹之情。
1313

14-
**C++1x** (或**现代 C++**,本书中均指 C++11/14/17) 为传统 C++ 注入的大量特性使得整个 C++ 变得更加像一门现代化的语言。C++1x 不仅仅增强了 C++ 语言自身的可用性,`auto` 关键字语义的修改使得我们更加有信心来操控极度复杂的模板类型。同时还对语言运行期进行了大量的强化,Lambda 表达式的出现让 C++ 具有了『匿名函数』的『闭包』特性,而这一特性几乎在现代的编程语言(诸如 Python/Swift/... )中已经司空见惯,右值引用的出现解决了 C++ 长期以来被人诟病的临时对象效率问题等等。
14+
**C++1x** (或**现代 C++**,本书中均指 C++11/14/17/20) 为传统 C++ 注入的大量特性使得整个 C++ 变得更加像一门现代化的语言。C++1x 不仅仅增强了 C++ 语言自身的可用性,`auto` 关键字语义的修改使得我们更加有信心来操控极度复杂的模板类型。同时还对语言运行期进行了大量的强化,Lambda 表达式的出现让 C++ 具有了『匿名函数』的『闭包』特性,而这一特性几乎在现代的编程语言(诸如 Python/Swift/... )中已经司空见惯,右值引用的出现解决了 C++ 长期以来被人诟病的临时对象效率问题等等。
1515

1616
C++17 则是近三年依赖 C++ 社区一致推进的方向,也指出了**现代C++**编程的一个重要发展方向。尽管它的出现并不如 C++11 的分量之重,但它包含了大量小而美的语言与特性(例如结构化绑定),这些特性的出现再一次修正了我们在 C++ 中的编程范式。
1717

@@ -36,7 +36,7 @@ C++17 则是近三年依赖 C++ 社区一致推进的方向,也指出了**现
3636

3737
本书每章中都出现了大量的代码,如果你在跟随本书介绍特性的思路编写自己的代码遇到问题时,不妨读一读随书附上的源码,你可以在[这里](../code)中找到书中介绍过的全部的源码,所有代码按章节组织,文件夹名称为章节序号。
3838

39-
[返回目录](./toc.md) | 上一章 | [下一章 迈向 C++11/14/17](./01-intro.md)
39+
[返回目录](./toc.md) | 上一章 | [下一章 迈向现代 C++](./01-intro.md)
4040

4141
## 许可
4242

book/zh-cn/01-intro.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: 第 1 章 迈向 C++11/14/17
2+
title: 第 1 章 迈向现代 C++
33
type: book-zh-cn
44
order: 1
55
---
66

7-
# 第 1 章 迈向 C++11/14/17
7+
# 第 1 章 迈向现代 C++
88

99
[TOC]
1010

book/zh-cn/02-usability.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ std::cout << new_enum::value3 << std::endl
931931

932932
## 总结
933933

934-
本节介绍了 C++11/14/17 中对语言可用性的增强,其中笔者认为最为重要的几个特性是几乎所有人都需要了解并熟练使用的:
934+
本节介绍了 C++11/14/17/20 中对语言可用性的增强,其中笔者认为最为重要的几个特性是几乎所有人都需要了解并熟练使用的:
935935

936936
1. auto 类型推导
937937
2. 范围 for 迭代

book/zh-cn/10-cpp20.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Concepts TS 的发布到最后一次 C++17 的讨论会只相隔了不到四个
130130
1. [Final features of C++17](https://meetingcpp.com/index.php/br/items/final-features-of-c17.html)
131131
2. [C++17: will it be great or just ok?](https://codeplay.com/public/uploaded/filehost/0cbdaf_c++17post-oulu2016.pdf)
132132
3. [Why Concepts didn't make C++17?](http://honermann.net/blog/2016/03/06/why-concepts-didnt-make-cxx17/)
133-
4. [C++11/14/17 编译器支持情况](http://en.cppreference.com/w/cpp/compiler_support)
133+
4. [C++11/14/17/20 编译器支持情况](http://en.cppreference.com/w/cpp/compiler_support)
134134
135135
## 许可
136136

book/zh-cn/appendix1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ order: 11
88

99
首先,恭喜你阅读完本书 🎉 !笔者希望本书有提起你对现代 C++ 的兴趣。
1010

11-
正如本书引言部分提到的,本书只是一本带你快速领略现代 C++ 11/14/17 新特性的读物,而非进阶学习实践 C++『黑魔法』的内容。笔者当然也想到了这个需求,只是这样的内容非常艰深,鲜有受众。在此,笔者列出一些能够帮助你在此书基础之上进一步学习现代 C++ 的资料,希望能够祝你一臂之力:
11+
正如本书引言部分提到的,本书只是一本带你快速领略现代 C++ 11/14/17/20 新特性的读物,而非进阶学习实践 C++『黑魔法』的内容。笔者当然也想到了这个需求,只是这样的内容非常艰深,鲜有受众。在此,笔者列出一些能够帮助你在此书基础之上进一步学习现代 C++ 的资料,希望能够祝你一臂之力:
1212

1313
- [C++ 参考](http://en.cppreference.com/w)
1414
- [CppCon YouTube 频道](https://www.youtube.com/user/CppCon/videos)

book/zh-cn/toc.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# 高速上手 C++ 11/14/17
2-
3-
> 正在向全面介绍 C++17 特性的内容过度
1+
# 高速上手 C++ 11/14/17/20
42

53
## 目录
64

75
- [**序言**](./00-preface.md)
8-
- [**第 1 章 迈向 C++11/14/17**](./01-intro.md)
6+
- [**第 1 章 迈向现代 C++**](./01-intro.md)
97
+ 1.1 被弃用的特性
108
+ 1.2 与 C 的兼容性
119
+ 进一步阅读的参考文献
@@ -83,6 +81,8 @@
8381
+ 7.2 `std::mutex``std::unique_lock`
8482
+ 7.3 `std::future``std::packaged_task`
8583
+ 7.4 `std::condition_variable`
84+
+ 7.5 `std::atomic` 与内存顺序
85+
+ 7.6 事务内存
8686
- [**第 8 章 标准库: 文件系统**](./08-filesystem.md)
8787
+ 8.1 文档与链接
8888
+ 8.2 `std::filesystem`

pdf/en-us/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title = 'C++11/14/17 On the Fly'
1+
title = 'C++11/14/17/20 On the Fly'
22
filename = 'modern-cpp-tutorial'
33
outputname='modern-cpp-tutorial'
44
revision = $(shell git describe --always --tags)

pdf/en-us/aggregator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
with open('modern-cpp-tutorial.md', 'w') as outfile:
1212
outfile.write("""---
13-
title: "C++11/14/17 On the Fly"
13+
title: "C++11/14/17/20 On the Fly"
1414
author: Changkun Ou <[email protected]>
1515
copyright: cc-by-nc-nd 4.0
1616
---

pdf/en-us/meta/template.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
\thispagestyle{plain}
162162
\begin{center}
163163

164-
{\LARGE\textbf{C++11/14/17 On the Fly}}
164+
{\LARGE\textbf{C++11/14/17/20 On the Fly}}
165165

166166
\vspace{1em}
167167
{\large Changkun Ou ([email protected])}
@@ -172,7 +172,7 @@
172172
\vspace{1em}
173173
\textbf{\large License}
174174

175-
\noindent This work is written by \href{https://github.com/changkun}{Ou Changkun} and licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. \texttt{\small http://creativecommons.org/licenses/by-nc-nd/4.0/}
175+
\noindent This work was written by \href{https://github.com/changkun}{Ou Changkun} and licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. \texttt{\small http://creativecommons.org/licenses/by-nc-nd/4.0/}
176176

177177
\vspace{8em}
178178
\includegraphics{../../assets/cover-2nd-en}

pdf/zh-cn/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
title = '高速上手 C++11/14/17'
1+
title = '高速上手 C++11/14/17/20'
22
filename = 'modern-cpp-tutorial'
33
outputname='modern-cpp-tutorial'
44
revision = $(shell git describe --always --tags)

pdf/zh-cn/aggregator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
with open('modern-cpp-tutorial.md', 'w') as outfile:
1111
outfile.write("""---
12-
title: "高速上手 C++11/14/17"
12+
title: "高速上手 C++11/14/17/20"
1313
author: 欧长坤 <[email protected]>
1414
copyright: cc-by-nc-nd 4.0
1515
---

pdf/zh-cn/meta/template.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
\thispagestyle{plain}
165165
\begin{center}
166166

167-
{\LARGE\textbf{高速上手 C++11/14/17}}
167+
{\LARGE\textbf{高速上手 C++11/14/17/20}}
168168

169169
\vspace{1em}
170170
{\large 欧长坤 ([email protected])}

website/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# changkun.de/modern-cpp
22

3-
Welcome to Modern C++ Tutorial! This site is built with [hexo](http://hexo.io/). Site content is written in Markdown format located in `../book`. And all static files will be built into `./public`, which is served by a nginx server at [changkun.de](https://changkun.de).
3+
Welcome to Modern C++ Tutorial! This site is built with [hexo](http://hexo.io/). Site content was written in Markdown format located in `../book`. And all static files will be built into `./public`, which is served by a nginx server at [changkun.de](https://changkun.de).
44

55
## Requirements
66

website/_config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Site Configuration
2-
title: 高速上手 C++ 11/14/17
3-
subtitle: C++ 11/14/17 On the Fly
2+
title: 高速上手 C++ 11/14/17/20
3+
subtitle: C++ 11/14/17/20 On the Fly
44
description: "欧长坤"
55
author: 欧长坤
66
email: hi[at]changkun.us

website/themes/moderncpp/_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site_description: "现代 C++ | 高速上手 C++ 11/14/17"
1+
site_description: "现代 C++ | 高速上手 C++ 11/14/17/20"
22
google_analytics:
33
root_domain: changkun.de/modern-cpp
44
moderncpp_version: 2.0.0

website/themes/moderncpp/layout/index.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div><div class="right">
1414
<h4>欧长坤 著</h4>
1515
<h1>
16-
高速上手<br>C++ 11/14/17
16+
高速上手<br>C++ 11/14/17/20
1717
</h1>
1818
<h2>第二版</h2>
1919
<p>

website/themes/moderncpp/layout/layout.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!DOCTYPE html>
44
<html lang="en">
55
<head>
6-
<title><%- page.title ? page.title : '' %> 高速上手 C++ 11/14/17 - C++ 11/14/17 On the Fly</title>
6+
<title><%- page.title ? page.title : '' %> 高速上手 C++ 11/14/17/20 - C++ 11/14/17/20 On the Fly</title>
77
<meta charset="utf-8">
88
<meta name="description" content="<%- theme.site_description %>">
99
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
@@ -23,7 +23,7 @@
2323

2424
</head>
2525
<body class="<%- isIndex ? '' : 'docs' -%>">
26-
<div id="mobile-bar" data-bg-text="高速上手 C++ 11/14/17" <%- isIndex ? 'class="top"' : '' %>>
26+
<div id="mobile-bar" data-bg-text="高速上手 C++ 11/14/17/20" <%- isIndex ? 'class="top"' : '' %>>
2727
<a class="menu-button"></a>
2828
<a class="logo" href="/modern-cpp/"></a>
2929
</div>

0 commit comments

Comments
 (0)