会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Brickert
CnBlogs
Home
New Post
Contact
Admin
Subscription
2020年6月19日
C++匿名函数
1.匿名函数的基本语法为: //[捕获列表](参数列表)->返回类型{函数体} int main() { auto Add = [](int a, int b)->int { return a + b; }; std::cout << Add(1, 2) << std::endl; //输出3 re
Read More
posted @ 2020-06-19 17:43 Brickert
Views(1274)
Comments(0)
Diggs(1)
Edit
公告