Chapter Overview
Get an idea of what we'll cover in this chapter.
We'll cover the following...
We'll cover the following...
In this chapter, we will cover the use of lambdas with the STL, in the following recipes:
- Use lambdas for scoped reusable code
- Use lambdas as predicates with the algorithm library
- Use
std::functionas a polymorphic wrapper - Concatenate lambdas with recursion
- Combine predicates with logical conjunction
- Call multiple lambdas with the same input
- Use mapped lambdas for a jump table