libzypp 17.37.10

filter_iterator Class Reference

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

`#include <zypp-core/base/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>
  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());
  filter_iterator
  An iterator over the subset of elements of some sequence which satisfy a given predicate.
  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:

- zypp-core/base/Iterator.h