Boost logo

Boost Users :

Subject: [Boost-users] [Unknown] Pedicate wrappers around std algorithms
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2009-06-04 04:25:48


Hi All,

Does this kind of wrapper exist in Boost anywhere?

template < class Iterator, class T >
bool exists( Iterator begin, Iterator end, const T & value )
{
  return find( begin, end, value ) != end;
}

Thanks,

- Rob.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net