libzypp
10.5.0
|
An iterator over the subset of elements of some sequence which satisfy a given predicate. More...
#include <Iterator.h>
An iterator over the subset of elements of some sequence which satisfy a given predicate.
Provides boost::filter_iterator and boost::make_filter_iterator convenience function.
template <class Predicate, class Iterator> filter_iterator<Predicate,Iterator> make_filter_iterator(Predicate f, Iterator x, Iterator end = Iterator()); template <class Predicate, class Iterator> filter_iterator<Predicate,Iterator> make_filter_iterator(Iterator x, Iterator end = Iterator());
struct MyDefaultConstructibleFilter; make_filter_iterator<MyDefaultConstructibleFilter>( c.begin(), c.end() ); make_filter_iterator( MyDefaultConstructibleFilter(), c.begin(), c.end() ); ... make_filter_iterator( resfilter::ByName("foo"), c.begin(), c.end() );