LLVM 23.0.0git
llvm::ImmutableList< T >::iterator Class Reference

#include "llvm/ADT/ImmutableList.h"

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = std::remove_reference_t<T>
using difference_type = std::ptrdiff_t
using pointer = const value_type *
using reference = const value_type &

Public Member Functions

 iterator ()=default
 iterator (ImmutableList l)
iteratoroperator++ ()
iterator operator++ (int)
bool operator== (const iterator &I) const
bool operator!= (const iterator &I) const
const value_typeoperator* () const
const std::remove_reference_t< value_type > * operator-> () const
ImmutableList getList () const

Detailed Description

template<typename T>
class llvm::ImmutableList< T >::iterator

Definition at line 87 of file ImmutableList.h.

Member Typedef Documentation

◆ difference_type

template<typename T>
using llvm::ImmutableList< T >::iterator::difference_type = std::ptrdiff_t

Definition at line 93 of file ImmutableList.h.

◆ iterator_category

template<typename T>
using llvm::ImmutableList< T >::iterator::iterator_category = std::forward_iterator_tag

Definition at line 91 of file ImmutableList.h.

◆ pointer

template<typename T>
using llvm::ImmutableList< T >::iterator::pointer = const value_type *

Definition at line 94 of file ImmutableList.h.

◆ reference

template<typename T>
using llvm::ImmutableList< T >::iterator::reference = const value_type &

Definition at line 95 of file ImmutableList.h.

◆ value_type

template<typename T>
using llvm::ImmutableList< T >::iterator::value_type = std::remove_reference_t<T>

Definition at line 92 of file ImmutableList.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<typename T>
llvm::ImmutableList< T >::iterator::iterator ( )
default

◆ iterator() [2/2]

template<typename T>
llvm::ImmutableList< T >::iterator::iterator ( ImmutableList l)
inline

Member Function Documentation

◆ getList()

template<typename T>
ImmutableList llvm::ImmutableList< T >::iterator::getList ( ) const
inline

Definition at line 113 of file ImmutableList.h.

References llvm::ImmutableList< T >::ImmutableList().

◆ operator!=()

template<typename T>
bool llvm::ImmutableList< T >::iterator::operator!= ( const iterator & I) const
inline

Definition at line 107 of file ImmutableList.h.

References I, and iterator().

◆ operator*()

template<typename T>
const value_type & llvm::ImmutableList< T >::iterator::operator* ( ) const
inline

Definition at line 108 of file ImmutableList.h.

◆ operator++() [1/2]

template<typename T>
iterator & llvm::ImmutableList< T >::iterator::operator++ ( )
inline

Definition at line 100 of file ImmutableList.h.

References iterator().

◆ operator++() [2/2]

template<typename T>
iterator llvm::ImmutableList< T >::iterator::operator++ ( int )
inline

Definition at line 101 of file ImmutableList.h.

References iterator().

◆ operator->()

template<typename T>
const std::remove_reference_t< value_type > * llvm::ImmutableList< T >::iterator::operator-> ( ) const
inline

Definition at line 109 of file ImmutableList.h.

◆ operator==()

template<typename T>
bool llvm::ImmutableList< T >::iterator::operator== ( const iterator & I) const
inline

Definition at line 106 of file ImmutableList.h.

References I, and iterator().


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