C++11 added Lambda Functions to C++, a feature many developers felt was long overdue.
There are a lot of tutorials on the web already about using Lambdas in C++. These tutorials cover all the wide variety of ways which Lambdas can be used in C++, as well as possible reasons for doing so.
I thought I'd throw my hat in the mix, and try to provide an ultra-short, ultra-simple example, adapted from code you may have seen before. We're just going to use a Lambda function to extend the functionality of std::sort.
First, I'm going to use this code for a starting point for this tutorial. So make sure that that's fully digested before heading over here.