I have a collection of elements that I need to operate over, calling member functions on the collection:
std::vector v; ... // vector is popula
Lamda functions - the idea is to do something like this
for_each(v.begin(), v.end(), [](MyType& x){ if (Check(x) DoSuff(x); })
Origial post here.