Jun's Blog

Recent content on Jun's Blog

马上订阅 Jun's Blog RSS 更新: https://www.junz.org/index.xml

C++中lambda表达式基础

2021年4月26日 21:25
语法 完整语法 1 2 3 4 [ capture clause ] (parameters) -> return-type { definition of method } 简化语法 在没有形参的情况下,可以简化为: 1 [] { codes here... } 本质 lambda本质是一个函数对象,可以看作