ocssw
V2022
|
FilterIterator.hpp
Go to the documentation of this file.
37 FilterIterator(InputIterator first, InputIterator last, UnaryPredicate pred) : first_{first}, it_{first}, last_{last}, pred_{pred} {
FilterIterator operator++()
Find the next value that fulfills the UnaryPredicate's condition, or return end().
Definition: FilterIterator.hpp:62
bool operator==(const FilterIterator &it)
Check if the underlying iterators are equal.
Definition: FilterIterator.hpp:52
FilterIterator(InputIterator first, InputIterator last, UnaryPredicate pred)
Sole and cumbersome constructor.
Definition: FilterIterator.hpp:37
Iterator for filtering the results of other iterators.
Definition: FilterIterator.hpp:27
bool operator!=(const FilterIterator &it)
Check if the underlying iterators are not equal.
Definition: FilterIterator.hpp:47
FilterIterator begin() const
Return a copy of the iterator reset back to the start.
Definition: FilterIterator.hpp:73
FilterIterator end() const
Return an iterator with no values left to check.
Definition: FilterIterator.hpp:75
Definition: DataProvider.hpp:16