llvm::pointee_iterator

An iterator type that allows iterating over the pointees via some other iterator.

Synopsis

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>

Description

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>;

Type Aliases

NameDescription
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.

Enums

NameDescription
Unnamed enum Capability flags for the iterator category.

Member Functions

NameDescription
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.

Using Declarations

NameDescription
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.

Protected Types

NameDescription
PointerProxy Proxy that yields a pointer from a copied reference.
ReferenceProxy Proxy that yields a reference from a copied iterator.

Protected Member Functions

NameDescription
wrapped Return the wrapped underlying iterator.

Protected Data Members

NameDescription
I Wrapped underlying iterator.

Non-Member Functions

NameDescription
make_pointee_rangeReturn a range that iterates over the pointees of Range.
make_pointee_rangeReturn 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.