mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-16 20:27:08 +03:00
see #2: typo fixes
This commit is contained in:
@@ -6,7 +6,7 @@ order: 3
|
||||
|
||||
# Chapter 03: Language Runtime Enhancements
|
||||
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./02-usability.md) | [Next Chapter: Sandard Library: Containers](./04-containers.md)
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./02-usability.md) | [Next Chapter: Standard Library: Containers](./04-containers.md)
|
||||
|
||||
## Further Readings
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: "Chapter 04 Sandard Library: Containers"
|
||||
title: "Chapter 04 Standard Library: Containers"
|
||||
type: book-en-us
|
||||
order: 4
|
||||
---
|
||||
|
||||
# Chapter 04 Sandard Library: Containers
|
||||
# Chapter 04 Standard Library: Containers
|
||||
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./03-runtime.md) | [Next Chapter: Sandard Library: Pointers](./05-pointers.md)
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./03-runtime.md) | [Next Chapter: Standard Library: Pointers](./05-pointers.md)
|
||||
|
||||
## Further Readings
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: "Chapter 05 Sandard Library: Pointers"
|
||||
title: "Chapter 05 Standard Library: Pointers"
|
||||
type: book-en-us
|
||||
order: 5
|
||||
---
|
||||
|
||||
# Chapter 05 Sandard Library: Pointers
|
||||
# Chapter 05 Standard Library: Pointers
|
||||
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./04-containers.md) | [Next Chapter: Sandard Library: Regular Expression](./06-regex.md)
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./04-containers.md) | [Next Chapter: Standard Library: Regular Expression](./06-regex.md)
|
||||
|
||||
## Further Readings
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: "Chapter 06 Sandard Library: Regular Expression"
|
||||
title: "Chapter 06 Standard Library: Regular Expression"
|
||||
type: book-en-us
|
||||
order: 6
|
||||
---
|
||||
|
||||
# Chapter 06 Sandard Library: Regular Expression
|
||||
# Chapter 06 Standard Library: Regular Expression
|
||||
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./05-pointers.md) | [Next Chapter: Sandard Library: Threads and Concurrency](./07-thread.md)
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./05-pointers.md) | [Next Chapter: Standard Library: Threads and Concurrency](./07-thread.md)
|
||||
|
||||
## Further Readings
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: "Chapter 07 Sandard Library: Threads and Concurrency"
|
||||
title: "Chapter 07 Standard Library: Threads and Concurrency"
|
||||
type: book-en-us
|
||||
order: 7
|
||||
---
|
||||
|
||||
# Chapter 07 Sandard Library: Threads and Concurrency
|
||||
# Chapter 07 Standard Library: Threads and Concurrency
|
||||
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./06-regex.md) | [Next Chapter: Sandard Library: File System](./08-filesystem.md)
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./06-regex.md) | [Next Chapter: File System](./08-filesystem.md)
|
||||
|
||||
## Further Readings
|
||||
|
||||
|
||||
@@ -1,10 +1,25 @@
|
||||
---
|
||||
title: "Chapter 08 Sandard Library: File System"
|
||||
title: "Chapter 08 File System"
|
||||
type: book-en-us
|
||||
order: 8
|
||||
---
|
||||
|
||||
# Chapter 08 Sandard Library: File System
|
||||
# Chapter 08 File System
|
||||
|
||||
[TOC]
|
||||
|
||||
The file system library provides functions related to
|
||||
the operation of the file system, path, regular files, directories, and so on.
|
||||
Similar to the regular expression library, he was one of the first libraries
|
||||
to be launched by boost and eventually merged into the C++ standard.
|
||||
|
||||
## 8.1 Document and Link
|
||||
|
||||
TODO:
|
||||
|
||||
## 8.2 std::filesystem
|
||||
|
||||
TODO:
|
||||
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./07-thread.md) | [Next Chapter: Minor Features](./09-others.md)
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ so most compilers already support it.
|
||||
C++11 now formally incorporate it into the standard library,
|
||||
specifying a `long long int` type with at least 64 bits.
|
||||
|
||||
## 9.2 `noexcept` Operations
|
||||
## 9.2 `noexcept` and Its Operations
|
||||
|
||||
One of the big advantages of C++ over C is that
|
||||
C++ itself defines a complete set of exception handling mechanisms.
|
||||
@@ -106,7 +106,7 @@ exception captured, from non_block_throw()
|
||||
|
||||
## 9.3 Literal
|
||||
|
||||
### String Literal
|
||||
### Raw String Literal
|
||||
|
||||
In traditional C++, it is very painful to write a string full of
|
||||
special characters. For example, a string containing HTML ontology
|
||||
|
||||
@@ -66,23 +66,23 @@ void sort(Sortable& c); // c is a Sortable type object
|
||||
|
||||
Let's look at a practical example.
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Module
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Contract
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Range
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Coroutine
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Conclusion
|
||||
|
||||
|
||||
@@ -10,27 +10,27 @@ In this appendix we will briefly talk about the best practices of modern C++. In
|
||||
|
||||
## Common Tools
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Coding Style
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Overall Performance
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Code Security
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Maintainability
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## Portability
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
[Table of Content](./toc.md) | [Previous Chapter](./appendix1.md)
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
+ rvalue reference & lvalue reference
|
||||
+ Move semantics
|
||||
+ Perfect forwarding
|
||||
- [**Chapter 04 Sandard Library: Containers**](./04-containers.md)
|
||||
- [**Chapter 04 Standard Library: Containers**](./04-containers.md)
|
||||
+ 4.1 `std::array` and `std::forward_list`
|
||||
+ 4.2 Unordered containers
|
||||
+ `std::unordered_set`
|
||||
@@ -63,11 +63,11 @@
|
||||
+ basic operation
|
||||
+ runtime indexing
|
||||
+ merge and iteration
|
||||
- [**Chapter 05 Sandard Library: Pointers**](./05-pointers.md)
|
||||
- [**Chapter 05 Standard Library: Pointers**](./05-pointers.md)
|
||||
+ 5.1 RAII and reference counting
|
||||
+ 5.2 `std::shared_ptr`
|
||||
+ 5.3 `std::unique_ptr`
|
||||
- [**Chapter 06 Sandard Library: Regular Expression**](./06-regex.md)
|
||||
- [**Chapter 06 Standard Library: Regular Expression**](./06-regex.md)
|
||||
+ 6.1 Regular Expression Introduction
|
||||
+ Normal characters
|
||||
+ Special characters
|
||||
@@ -84,16 +84,16 @@
|
||||
+ 7.5 `std::atomic` and memory order
|
||||
+ 7.6 Transactional memory
|
||||
+ 7.7 Coroutine
|
||||
- [**Chapter 08 Sandard Library: File System**](./08-filesystem.md)
|
||||
- [**Chapter 08 File System**](./08-filesystem.md)
|
||||
+ 8.1 Documents and links
|
||||
+ 8.2 `std::filesystem`
|
||||
- [**Chapter 09 Minor Features**](./09-others.md)
|
||||
+ 9.1 New Types
|
||||
+ `long long int`
|
||||
+ 9.2 `noexcept` and its operates
|
||||
+ 9.2 `noexcept` and Its Operations
|
||||
+ 9.3 Literal
|
||||
+ Raw string literal
|
||||
+ Custom string literal
|
||||
+ Raw String Literal
|
||||
+ Custom String Literal
|
||||
+ 9.4 Math Library
|
||||
- [**Chapter 10 Outlook: Introduction of C++20**](./10-cpp20.md)
|
||||
+ Concept
|
||||
|
||||
@@ -197,7 +197,7 @@ auto f = pool.enqueue([](int life) {
|
||||
std::cout << f.get() << std::endl;
|
||||
```
|
||||
|
||||
[返回目录](./toc.md) | [上一章](./06-regex.md) | [下一章 标准库:文件系统](./08-filesystem.md)
|
||||
[返回目录](./toc.md) | [上一章](./06-regex.md) | [下一章 文件系统](./08-filesystem.md)
|
||||
|
||||
## 进一步阅读的参考资料
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
---
|
||||
title: 第 8 章 标准库:文件系统
|
||||
title: 第 8 章 文件系统
|
||||
type: book-zh-cn
|
||||
order: 8
|
||||
---
|
||||
|
||||
# 第 8 章 标准库:文件系统
|
||||
|
||||
> TODO: 这部分内容为 C++17 新增
|
||||
# 第 8 章 文件系统
|
||||
|
||||
[TOC]
|
||||
|
||||
@@ -14,10 +12,12 @@ order: 8
|
||||
|
||||
## 8.1 文档与链接
|
||||
|
||||
|
||||
TODO:
|
||||
|
||||
## 8.2 std::filesystem
|
||||
|
||||
TODO:
|
||||
|
||||
[返回目录](./toc.md) | [上一章](./07-thread.md) | [下一章 其他杂项](./09-others.md)
|
||||
|
||||
## 许可
|
||||
|
||||
@@ -55,23 +55,23 @@ void sort(Sortable& c); // c 是一个 Sortable 类型的对象
|
||||
|
||||
我们现在来看一个实际的例子。
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 模块
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 合约
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 范围
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 协程
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 总结
|
||||
|
||||
|
||||
@@ -10,27 +10,27 @@ order: 12
|
||||
|
||||
## 常用工具
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 代码风格
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 整体性能
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 代码安全
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 可维护性
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
## 可移植性
|
||||
|
||||
TODO
|
||||
TODO:
|
||||
|
||||
[返回目录](./toc.md) | [上一章](./11-appendix1.md)
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
+ 7.5 `std::atomic` 与内存顺序
|
||||
+ 7.6 事务内存
|
||||
+ 7.7 协程
|
||||
- [**第 8 章 标准库: 文件系统**](./08-filesystem.md)
|
||||
- [**第 8 章 文件系统**](./08-filesystem.md)
|
||||
+ 8.1 文档与链接
|
||||
+ 8.2 `std::filesystem`
|
||||
- [**第 9 章 其他杂项**](./09-others.md)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user