![]() |
![]() |
Category: algorithms | Component type: function |
template<class InputIterator, class Predicate> InputIterator find_if(InputIterator first, InputIterator last, Predicate pred);
list<int> L; L.push_back(-3); L.push_back(0); L.push_back(3); L.push_back(-2); list<int>::iterator result = find_if(L.begin(), L.end(), bind2nd(greater<int>(), 0)); assert(result == L.end() || *result > 0);
Using this site means you accept its terms of use | privacy policy | | | trademark information |
Copyright © 1993-2003 Silicon Graphics, Inc. All rights reserved. | | | contact us |