A utility class used to implement an iterator that contains some base object and an index. The iterator moves the index but keeps the base constant.
Synopsis
Declared in <llvm/ADT/STLExtras.h>
template<
typename DerivedT,
typename BaseT,
typename T,
typename PointerT = T*,
typename ReferenceT = T&>
class indexed_accessor_iterator
: public llvm::iterator_facade_base<DerivedT, std::random_access_iterator_tag, T, std::ptrdiff_t, PointerT, ReferenceT>
Base Classes
Name |
Description |
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of the interface. |
Type Aliases
Name |
Description |
Signed type used to express the distance between iterators. |
|
Iterator category tag for this facade. |
|
Pointer type returned by the iterator. |
|
Reference type returned by the iterator. |
|
Value type produced by the iterator. |
Enums
Name |
Description |
Capability flags for the iterator category. |
Member Functions
Name |
Description |
Returns the current base of the iterator. |
|
Returns the current index of the iterator. |
|
Advance the iterator by |
|
Increment operators |
|
Move the iterator |
|
Subtraction operators |
|
Decrement operators |
|
Move the iterator |
|
Return a proxy pointer to the current element. |
|
Return a proxy to the element at offset |
|
Return true if both iterators share the same base and index. |
|
Return true if this iterator precedes |
|
Return true if this iterator is less than or equal to |
|
Return true if this iterator is greater than |
|
Return true if this iterator is greater than or equal to |
Protected Types
Name |
Description |
Proxy that yields a pointer from a copied reference. |
|
Proxy that yields a reference from a copied iterator. |
Protected Member Functions
Name |
Description |
|
Construct an iterator over |
Protected Data Members
Non-Member Functions
Name |
Description |
Return an iterator |