Lambda Expressions can be used in place
of function objects. For example, as the comp parameter in the std:: sort()
template function.
template
void sort (RandomAccessIterator first, RandomAccessIterator last,
Compare comp);
References: http://en.cppreference.com/w/cpp/language/lambda
No comments:
Post a Comment