$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2008-07-27 01:00:04
Hi,
Can you please tell me if there is an easy way to replace the
following for loop using boost:lambda?
I have a vector of A, i want to call 'aMethod of each A, and stop it
when one of them return true.
for (vector<A*>::const_iterator iter = aList.begin() ; iter !=
aList.end(); ++iter) {
A* anA = (*iter);
// break out the for loop if aMethod return true;
if (anA->aMethod()){
break;
}