class filter_iterator
Declaration
template <typename Iterator, typename PredicateFn>
class filter_iterator { /* full declaration omitted */ };
Template Parameters
- Iterator
- PredicateFn
Member Variables
- Iterator m_it
- const Iterator m_end
- PredicateFn m_fn
Member Aliases
- using difference_type = typename std::iterator_traits< Iterator>::difference_type;
- using iterator_category = std::forward_iterator_tag;
- using pointer = typename std::iterator_traits< Iterator>::pointer;
- using reference = typename std::iterator_traits< Iterator>::reference;
- using value_type = typename std::iterator_traits< Iterator>::value_type;
Member Function Overview
- filter_iterator(Iterator begin, Iterator end, PredicateFn fn)
- operator!=(const filter_iterator<Iterator, PredicateFn> & rhs) → bool
- operator*() → reference
- operator++() → filter_iterator<Iterator, PredicateFn> &
- operator->() → reference
- advance() → void
Member Functions
¶filter_iterator(Iterator begin,
Iterator end,
PredicateFn fn)
filter_iterator(Iterator begin,
Iterator end,
PredicateFn fn)
Parameters
- Iterator begin
- Iterator end
- PredicateFn fn
¶bool operator!=(
const filter_iterator<Iterator, PredicateFn>&
rhs)
bool operator!=(
const filter_iterator<Iterator, PredicateFn>&
rhs)
Parameters
- const filter_iterator<Iterator, PredicateFn>& rhs
¶reference operator*()
reference operator*()
¶filter_iterator<Iterator, PredicateFn>&
operator++()
filter_iterator<Iterator, PredicateFn>&
operator++()
¶reference operator->()
reference operator->()
¶void advance()
void advance()