#include <stlsoft/iterators/filter_iterator.hpp>
The design of this component is described in detail in chapter 42 of Extended STL, volume 1, which is also available for free download.
Public Types | |
Member Types | |
typedef I | base_iterator_type |
typedef P | filter_predicate_type |
typedef T | traits_type |
typedef filter_iterator< I, P, T > | class_type |
typedef min_iterator_category < typename traits_type::iterator_category, std::bidirectional_iterator_tag > ::iterator_category | iterator_category |
typedef traits_type::value_type | value_type |
typedef traits_type::difference_type | difference_type |
typedef traits_type::pointer | pointer |
typedef traits_type::const_pointer | const_pointer |
typedef traits_type::reference | reference |
typedef traits_type::const_reference | const_reference |
typedef traits_type::effective_reference | effective_reference |
typedef traits_type::effective_const_reference | effective_const_reference |
typedef traits_type::effective_pointer | effective_pointer |
typedef traits_type::effective_const_pointer | effective_const_pointer |
Public Member Functions | |
Construction | |
filter_iterator (base_iterator_type begin, base_iterator_type end, filter_predicate_type pr) | |
base_iterator_type | base () const |
A copy of the base iterator. | |
Forward Iterator methods | |
class_type & | operator++ () |
class_type | operator++ (int) |
effective_reference | operator* () |
effective_const_reference | operator* () const |
effective_pointer | operator-> () |
effective_const_pointer | operator-> () const |
Bidirectional Iterator methods | |
class_type & | operator-- () |
class_type | operator-- (int) |
Comparison | |
bool | equal (class_type const &rhs) const |
bool | equals (class_type const &rhs) const |
Attributes | |
difference_type | distance () const |
base_iterator_type base | ( | ) | const [inline] |
A copy of the base iterator.
bool equals | ( | class_type const & | rhs | ) | const [inline] |