24 #ifndef PPL_Ptr_Iterator_inlines_hh
25 #define PPL_Ptr_Iterator_inlines_hh 1
29 namespace Implementation {
101 template <
typename P>
108 template <
typename P>
115 template <
typename P>
121 template <
typename P>
127 template <
typename P>
133 template<
typename P,
typename Q>
139 template<
typename P,
typename Q>
145 template<
typename P,
typename Q>
148 return x.
base() < y.base();
151 template<
typename P,
typename Q>
154 return x.
base() <= y.base();
157 template<
typename P,
typename Q>
163 template<
typename P,
typename Q>
169 template<
typename P,
typename Q>
170 inline typename Ptr_Iterator<P>::difference_type
176 inline Ptr_Iterator<P>
186 #endif // !defined(PPL_Ptr_Iterator_inlines_hh)
pointer operator->() const
Indirect member selector.
Ptr_Iterator< P >::difference_type operator-(const Ptr_Iterator< P > &x, const Ptr_Iterator< Q > &y)
bool operator>(const Ptr_Iterator< P > &x, const Ptr_Iterator< Q > &y)
reference operator[](const difference_type m) const
Subscript operator.
Ptr_Iterator & operator--()
Prefix decrement operator.
A class to define STL const and non-const iterators from pointer types.
bool operator>=(const Ptr_Iterator< P > &x, const Ptr_Iterator< Q > &y)
Ptr_Iterator()
Default constructor: no guarantees.
difference_type operator-(const Ptr_Iterator &y) const
Returns the difference between *this and y.
std::iterator_traits< P >::reference reference
reference operator*() const
Dereference operator.
P p
The base pointer implementing the iterator.
bool operator==(const EList_Iterator< T > &x, const EList_Iterator< T > &y)
Returns true if and only if x and y are equal.
bool operator!=(const EList_Iterator< T > &x, const EList_Iterator< T > &y)
Returns true if and only if x and y are different.
Ptr_Iterator & operator++()
Prefix increment operator.
std::iterator_traits< P >::pointer pointer
Ptr_Iterator & operator-=(const difference_type m)
Assignment-decrement operator.
Ptr_Iterator & operator+=(const difference_type m)
Assignment-increment operator.
The entire library is confined to this namespace.
Ptr_Iterator operator+(const difference_type m) const
Returns the sum of *this and m.
std::iterator_traits< P >::difference_type difference_type
Ptr_Iterator< P > operator+(typename Ptr_Iterator< P >::difference_type m, const Ptr_Iterator< P > &y)
const P & base() const
Returns the hidden pointer.