libzypp  17.5.0
filter_iterator Class Reference

An iterator over the subset of elements of some sequence which satisfy a given predicate. More...

#include <Iterator.h>

Detailed Description

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.

See also
http://www.boost.org/libs/iterator/doc/filter_iterator.html
template <class Predicate, class Iterator>
make_filter_iterator(Predicate f, Iterator x, Iterator end = Iterator());
template <class Predicate, class Iterator>
make_filter_iterator(Iterator x, Iterator end = Iterator());
Remember the deduction rules for template arguments.
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() );

The documentation for this class was generated from the following file: