book: avoid "let the compiler deduce the list by itself" (#277)

This commit is contained in:
A. Jiang
2024-05-21 05:54:46 +08:00
committed by GitHub
parent bdf0e899a7
commit 54e99e1461
2 changed files with 4 additions and 4 deletions

View File

@@ -76,8 +76,8 @@ void lambda_reference_capture() {
- \[\] 空捕获列表
- \[name1, name2, ...\] 捕获一系列变量
- \[&\] 引用捕获, 让编译器自行推导引用列表
- \[=\] 值捕获, 让编译器自行推导值捕获列表
- \[&\] 引用捕获, 从函数体内的使用确定引用捕获列表
- \[=\] 值捕获, 从函数体内的使用确定值捕获列表
#### 4. 表达式捕获