28 Jul
2008
28 Jul
'08
5:01 p.m.
AMDG Marshall Clow wrote:
At 12:00 AM -0500 7/27/08, Meryl Silverburgh wrote:
for (vector::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; }
Isn't this what std::find_if does?
std::find_if is not quite equivalent to the for loop, because std::find_if is not allowed to modify the input sequence. In Christ, Steven Watanabe