lambda表达式实质上,是一种快速定义函数对象的语法(编译器实现)
lambda表达式
1
auto cpp_bigger = [](int a, int b){ return a > b; };
<=>
123456
class _CompilerInventedName{public: bool operator() (int a, int b) const { return a > b; }};_CompilerInventedName cpp_bigger;