revision: #2: 增加随书代码说明

This commit is contained in:
Changkun Ou
2018-03-30 14:39:30 +02:00
parent 51282838f8
commit 888f8d0794
6 changed files with 31 additions and 21 deletions

View File

@@ -12,6 +12,7 @@
#include <functional>
int main() {
// 使用 lambda 表达式
[out = std::ref(std::cout << "Result from C code: " << add(1, 2))](){
out.get() << ".\n";
}();