mirror of https://github.com/CGAL/cgal
Added an operator< to Filter_iterator
This commit is contained in:
parent
9d084a088c
commit
5a5d838497
|
|
@ -485,6 +485,8 @@ template < class I, class P > struct Filter_iterator;
|
||||||
|
|
||||||
template < class I, class P >
|
template < class I, class P >
|
||||||
bool operator==(const Filter_iterator<I,P>&, const Filter_iterator<I,P>&);
|
bool operator==(const Filter_iterator<I,P>&, const Filter_iterator<I,P>&);
|
||||||
|
template < class I, class P >
|
||||||
|
bool operator<(const Filter_iterator<I,P>&, const Filter_iterator<I,P>&);
|
||||||
|
|
||||||
template < class I, class P >
|
template < class I, class P >
|
||||||
struct Filter_iterator {
|
struct Filter_iterator {
|
||||||
|
|
@ -551,6 +553,7 @@ public:
|
||||||
bool is_end() const { return (c_ == e_); }
|
bool is_end() const { return (c_ == e_); }
|
||||||
|
|
||||||
friend bool operator== <>(const Self&, const Self&);
|
friend bool operator== <>(const Self&, const Self&);
|
||||||
|
friend bool operator< <>(const Self&, const Self&);
|
||||||
};
|
};
|
||||||
|
|
||||||
template < class I, class P >
|
template < class I, class P >
|
||||||
|
|
@ -572,6 +575,14 @@ bool operator==(const Filter_iterator<I,P>& it1,
|
||||||
return it1.base() == it2.base();
|
return it1.base() == it2.base();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template < class I, class P >
|
||||||
|
inline
|
||||||
|
bool operator<(const Filter_iterator<I,P>& it1,
|
||||||
|
const Filter_iterator<I,P>& it2)
|
||||||
|
{
|
||||||
|
return it1.base() < it2.base();
|
||||||
|
}
|
||||||
|
|
||||||
template < class I, class P >
|
template < class I, class P >
|
||||||
inline
|
inline
|
||||||
bool operator!=(const Filter_iterator<I,P>& it1,
|
bool operator!=(const Filter_iterator<I,P>& it1,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue