Tag Lambda

Lambda expression comparison between C++11, C++14 and C++17

In this post I talk about what has been added in the C++ standard regarding lambda expressions since they were introduced in C++11. All the code and configuration files used in this post are available in this repo in GitHub. What is a lambda expression? A lambda expression is a simplified notation for defining and using an anonymous function object. Instead of defining a named class with an operator(), later making an object of that class and finally invoking it.[^1] I do not explain all the options... (read more)