[Home]STLAlgorithmExtensions/NoneAlgorithm

BOOST WIKI | STLAlgorithmExtensions | RecentChanges | Preferences | Page List | Links List

Difference (from prior major revision) (no other diffs)

Changed: 6c6
return std::find_if(first, last) == last;
return std::find_if(first, last, p) == last;

Changed: 8c8
</pre>
</pre>

This algorithm returns true if the predicate is true for none of the elements in the range.
template <typename InputIterator, typename Predicate>
bool none(InputIterator first, InputIterator last, Predicate p)
{
  return std::find_if(first, last, p) == last;
}

BOOST WIKI | STLAlgorithmExtensions | RecentChanges | Preferences | Page List | Links List
Edit text of this page | View other revisions
Last edited December 6, 2001 1:29 pm (diff)
Search:
Disclaimer: This site not officially maintained by Boost Developers