A lambda expression enables you to define an unnamed functiondirectly on the call site of an algorithm. Such unnamed functions are chiefly useful in functional programming, generic libraries, and scientific applications. However, even mainstream C++ applications can benefit from the higher-order programming concepts of lambda abstractions. The following sections show how TR1's lambda library can simplify the usage of STL algorithms.
How can you create small, unnamed functions directly on the call site of an STL algorithm?
Use the lambda library for implementing lambda functors.