mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
book: typo fixes (#164)
Co-authored-by: guoliang wang <tswanggl@hotmail.com>
This commit is contained in:
@@ -87,8 +87,8 @@ capture lists can be:
|
|||||||
|
|
||||||
- \[\] empty capture list
|
- \[\] empty capture list
|
||||||
- \[name1, name2, ...\] captures a series of variables
|
- \[name1, name2, ...\] captures a series of variables
|
||||||
- \[&\] reference capture, let the compiler derive the capture list by itself
|
- \[&\] reference capture, let the compiler deduce the reference list by itself
|
||||||
- \[=\] value capture, let the compiler execute the list of derivation applications
|
- \[=\] value capture, let the compiler deduce the value list by itself
|
||||||
|
|
||||||
#### 4. Expression capture
|
#### 4. Expression capture
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ void lambda_reference_capture() {
|
|||||||
|
|
||||||
- \[\] 空捕获列表
|
- \[\] 空捕获列表
|
||||||
- \[name1, name2, ...\] 捕获一系列变量
|
- \[name1, name2, ...\] 捕获一系列变量
|
||||||
- \[&\] 引用捕获, 让编译器自行推导捕获列表
|
- \[&\] 引用捕获, 让编译器自行推导引用列表
|
||||||
- \[=\] 值捕获, 让编译器执行推导引用列表
|
- \[=\] 值捕获, 让编译器自行推导值捕获列表
|
||||||
|
|
||||||
**4. 表达式捕获**
|
**4. 表达式捕获**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user