LLVM 22.0.0git
llvm::detail::index_iterator Struct Reference

#include "llvm/ADT/STLExtras.h"

Inheritance diagram for llvm::detail::index_iterator:
[legend]

Public Member Functions

 index_iterator (std::size_t Index)
index_iteratoroperator+= (std::ptrdiff_t N)
index_iteratoroperator-= (std::ptrdiff_t N)
std::ptrdiff_t operator- (const index_iterator &R) const
std::size_t operator* () const
Public Member Functions inherited from llvm::iterator_facade_base< index_iterator, std::random_access_iterator_tag, std::size_t >
index_iterator operator+ (std::ptrdiff_t n) const
index_iterator operator- (std::ptrdiff_t n) const
index_iterator & operator++ ()
index_iterator & operator-- ()
bool operator!= (const index_iterator &RHS) const
bool operator> (const index_iterator &RHS) const
bool operator<= (const index_iterator &RHS) const
bool operator>= (const index_iterator &RHS) const
PointerProxy operator-> () const
ReferenceProxy operator[] (std::ptrdiff_t n) const

Friends

bool operator== (const index_iterator &Lhs, const index_iterator &Rhs)
bool operator< (const index_iterator &Lhs, const index_iterator &Rhs)

Additional Inherited Members

Public Types inherited from llvm::iterator_facade_base< index_iterator, std::random_access_iterator_tag, std::size_t >
using iterator_category
using value_type
using difference_type
using pointer
using reference
Protected Types inherited from llvm::iterator_facade_base< index_iterator, std::random_access_iterator_tag, std::size_t >
enum  

Detailed Description

Definition at line 2354 of file STLExtras.h.

Constructor & Destructor Documentation

◆ index_iterator()

llvm::detail::index_iterator::index_iterator ( std::size_t Index)
inline

Definition at line 2357 of file STLExtras.h.

Referenced by operator+=(), operator-(), operator-=(), operator<, and operator==.

Member Function Documentation

◆ operator*()

std::size_t llvm::detail::index_iterator::operator* ( ) const
inline

Definition at line 2378 of file STLExtras.h.

◆ operator+=()

index_iterator & llvm::detail::index_iterator::operator+= ( std::ptrdiff_t N)
inline

Definition at line 2359 of file STLExtras.h.

References index_iterator(), and N.

◆ operator-()

std::ptrdiff_t llvm::detail::index_iterator::operator- ( const index_iterator & R) const
inline

Definition at line 2369 of file STLExtras.h.

References index_iterator().

◆ operator-=()

index_iterator & llvm::detail::index_iterator::operator-= ( std::ptrdiff_t N)
inline

Definition at line 2364 of file STLExtras.h.

References index_iterator(), and N.

◆ operator<

bool operator< ( const index_iterator & Lhs,
const index_iterator & Rhs )
friend

Definition at line 2384 of file STLExtras.h.

References index_iterator().

◆ operator==

bool operator== ( const index_iterator & Lhs,
const index_iterator & Rhs )
friend

Definition at line 2380 of file STLExtras.h.

References index_iterator().


The documentation for this struct was generated from the following file: