Jun's BlogRecent content on Jun's Blog马上订阅 Jun's Blog RSS 更新: https://www.junz.org/index.xmlC++中lambda表达式基础2021年4月26日 21:25语法 完整语法 1 2 3 4 [ capture clause ] (parameters) -> return-type { definition of method } 简化语法 在没有形参的情况下,可以简化为: 1 [] { codes here... } 本质 lambda本质是一个函数对象,可以看作查看完整文章