Closure (computer programming): Difference between revisions

Content deleted Content added
m Etymology: linkify
m C++: fix C++0x lambda syntax
Line 277:
// ...
names::iterator i =
 find_if(n.begin(), n.end(), <>[&](const string& s){return s != myname && s.size() > y;});
// <tt>i</tt> is now either <tt>n.end()</tt> or points to the first string in <tt>n</tt>
// which is not equal to <tt> myname</tt> and which length is greater than <tt>y</tt>