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);
Contact Us | Site Map | Trademarks | Privacy | Using this site means you accept its Terms of Use |
Copyright © 2009 - 2014 Silicon Graphics International. All rights reserved. |