C++11 Lambda表达式
https://www.cnblogs.com/jimodetiantang/p/9016826.html
https://blog.csdn.net/qq_26079093/article/details/90759175
语法
capture mutable -> return-type { statement }
示例
1 | [] (int x, int y) { return x + y; } |
capture
1 | [空] 没有任何函数对象参数。 |
https://www.cnblogs.com/jimodetiantang/p/9016826.html
https://blog.csdn.net/qq_26079093/article/details/90759175
capture mutable -> return-type { statement }
1 | [] (int x, int y) { return x + y; } |
1 | [空] 没有任何函数对象参数。 |