A literal expression is a representation of a value in code that is written directly as it appears in the program, rather than being computed or evaluated.Lambda expressions allow us to write good, clean generic code. They allow the use of functional programmingFunctional programming is a programming paradigm that emphasizes the use of pure functions and immutable data to avoid side effects and promote declarative programming. patterns, where we can use lambdas as functional parameters to algorithms and even other lambdas.
In this chapter, we will cover the use of lambdas with the STL, in the following recipes: