File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ capture lists can be:
87
87
88
88
- \[\] empty capture list
89
89
- \[ name1, name2, ...\] captures a series of variables
90
- - \[ &\] reference capture, let the compiler deduce the reference list by itself
91
- - \[ =\] value capture, let the compiler deduce the value list by itself
90
+ - \[ &\] reference capture, determine the reference capture list from the uses the in function body
91
+ - \[ =\] value capture, determine the value capture list from the uses in the function body
92
92
93
93
#### 4. Expression capture
94
94
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ void lambda_reference_capture() {
76
76
77
77
- \[\] 空捕获列表
78
78
- \[ name1, name2, ...\] 捕获一系列变量
79
- - \[ &\] 引用捕获, 让编译器自行推导引用列表
80
- - \[ =\] 值捕获, 让编译器自行推导值捕获列表
79
+ - \[ &\] 引用捕获, 从函数体内的使用确定引用捕获列表
80
+ - \[ =\] 值捕获, 从函数体内的使用确定值捕获列表
81
81
82
82
#### 4. 表达式捕获
83
83
You can’t perform that action at this time.
0 commit comments