LLVM  14.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::detail::result_pair< R > Struct Template Reference

#include "llvm/ADT/STLExtras.h"

Public Types

using value_reference = typename std::iterator_traits< IterOfRange< R > >::reference
 

Public Member Functions

 result_pair ()=default
 
 result_pair (std::size_t Index, IterOfRange< R > Iter)
 
 result_pair (const result_pair< R > &Other)
 
result_pairoperator= (const result_pair &Other)
 
std::size_t index () const
 
value_reference value () const
 

Friends

class enumerator_iter< R >
 

Detailed Description

template<typename R>
struct llvm::detail::result_pair< R >

Definition at line 1908 of file STLExtras.h.

Member Typedef Documentation

◆ value_reference

template<typename R >
using llvm::detail::result_pair< R >::value_reference = typename std::iterator_traits<IterOfRange<R> >::reference

Definition at line 1910 of file STLExtras.h.

Constructor & Destructor Documentation

◆ result_pair() [1/3]

template<typename R >
llvm::detail::result_pair< R >::result_pair ( )
default

◆ result_pair() [2/3]

template<typename R >
llvm::detail::result_pair< R >::result_pair ( std::size_t  Index,
IterOfRange< R >  Iter 
)
inline

Definition at line 1915 of file STLExtras.h.

◆ result_pair() [3/3]

template<typename R >
llvm::detail::result_pair< R >::result_pair ( const result_pair< R > &  Other)
inline

Definition at line 1918 of file STLExtras.h.

Member Function Documentation

◆ index()

template<typename R >
std::size_t llvm::detail::result_pair< R >::index ( ) const
inline

Definition at line 1926 of file STLExtras.h.

References Index.

◆ operator=()

template<typename R >
result_pair& llvm::detail::result_pair< R >::operator= ( const result_pair< R > &  Other)
inline

Definition at line 1920 of file STLExtras.h.

References Index, and Other.

◆ value()

template<typename R >
value_reference llvm::detail::result_pair< R >::value ( ) const
inline

Definition at line 1927 of file STLExtras.h.

Friends And Related Function Documentation

◆ enumerator_iter< R >

template<typename R >
friend class enumerator_iter< R >
friend

Definition at line 1912 of file STLExtras.h.


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