I have done a simple sample how to use a C++11 lambda expression as predicate for a particular algorithm.
pred1 demonstrates the result type of a lambda expression is a function pointer.
pred2 demonstrates how to shorten the lengthy type declaration.
No comments:
Post a Comment