An iterator type that allows iterating over the pointees via some other iterator.
Declared in <llvm/ADT/iterator.h>
template<
typename WrappedIteratorT,
typename T = std::remove_reference_t<decltype(**std::declval<WrappedIteratorT>())>>
struct pointee_iterator
: iterator_adaptor_base<pointee_iterator<WrappedIteratorT, T>, WrappedIteratorT, std::iterator_traits<WrappedIteratorT>::iterator_category, T>
The typical usage of this is to expose a type that iterates over Ts, but which is implemented with some iterator over T*s:
using iterator = pointee_iterator<SmallVectorImpl<T *>::iterator>;
| Name | Description |
|---|---|
iterator_adaptor_base<pointee_iterator<WrappedIteratorT, T>, WrappedIteratorT, std::iterator_traits<WrappedIteratorT>::iterator_category, T> | CRTP base class for adapting an iterator to a different type. |
| Name | Description |
|---|---|
difference_type | Signed type used to express the distance between iterators. |
iterator_category | Iterator category tag for this facade. |
pointer | Pointer type returned by the iterator. |
reference | Reference type returned by the iterator. |
value_type | Value type produced by the iterator. |
| Name | Description |
|---|---|
Unnamed enum | Capability flags for the iterator category. |
| Name | Description |
|---|---|
pointee_iterator [constructor] | Constructors |
operator* | Return a reference to the pointee of the current element. |
operator+ | Advance the iterator by n and return the result. |
operator++ | Increment operators |
operator+= | Advance the wrapped iterator by n. |
operator- | Subtraction operators |
operator-- | Decrement operators |
operator-= | Retreat the wrapped iterator by n. |
operator-> | Return a proxy pointer to the current element. |
operator[] | Return a proxy to the element at offset n. |
operator<= | Return true if this iterator is less than or equal to RHS. |
operator> | Return true if this iterator is greater than RHS. |
operator>= | Return true if this iterator is greater than or equal to RHS. |
| Name | Description |
|---|---|
operator++ | Bring the postfix increment operator into scope. |
operator- | Bring the offset-subtraction operator from the facade into scope. |
operator-- | Bring the postfix decrement operator into scope. |
| Name | Description |
|---|---|
PointerProxy | Proxy that yields a pointer from a copied reference. |
ReferenceProxy | Proxy that yields a reference from a copied iterator. |
| Name | Description |
|---|---|
wrapped | Return the wrapped underlying iterator. |
| Name | Description |
|---|---|
I | Wrapped underlying iterator. |
| Name | Description |
|---|---|
make_pointee_range | Return a range that iterates over the pointees of Range. |
make_pointee_range | Return a range that iterates over the pointees of Range. |
operator+ | Return an iterator n positions after i. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator< | Compare two adapted iterators for order. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |
operator== | Return true if LHS and RHS wrap equal iterators. |