LLVM 20.0.0git
|
#include "llvm/ADT/STLExtras.h"
Public Types | |
using | range_reference_tuple = std::tuple< Refs... > |
using | value_reference_tuple = std::tuple< std::size_t, Refs... > |
Public Member Functions | |
enumerator_result (std::size_t Index, Refs &&...Rs) | |
std::size_t | index () const |
Returns the 0-based index of the current position within the original input range(s). | |
decltype(auto) | value () const |
Returns the value(s) for the current iterator. | |
Static Public Attributes | |
static constexpr std::size_t | NumRefs = sizeof...(Refs) |
static constexpr std::size_t | NumValues = NumRefs + 1 |
Friends | |
template<std::size_t I, typename = std::enable_if_t<I == 0>> | |
std::size_t | get (const enumerator_result &Result) |
Returns the value at index I . This case covers the index. | |
template<std::size_t I, typename = std::enable_if_t<I != 0>> | |
decltype(auto) | get (const enumerator_result &Result) |
Returns the value at index I . | |
template<typename... Ts> | |
bool | operator== (const enumerator_result &Result, const std::tuple< std::size_t, Ts... > &Other) |
Definition at line 2238 of file STLExtras.h.
using llvm::detail::enumerator_result< std::size_t, Refs... >::range_reference_tuple = std::tuple<Refs...> |
Definition at line 2245 of file STLExtras.h.
using llvm::detail::enumerator_result< std::size_t, Refs... >::value_reference_tuple = std::tuple<std::size_t, Refs...> |
Definition at line 2248 of file STLExtras.h.
|
inline |
Definition at line 2250 of file STLExtras.h.
|
inline |
Returns the 0-based index of the current position within the original input range(s).
Definition at line 2255 of file STLExtras.h.
References Idx.
|
inline |
Returns the value(s) for the current iterator.
This does not include the index.
Definition at line 2259 of file STLExtras.h.
|
friend |
Returns the value at index I
. This case covers the index.
Definition at line 2268 of file STLExtras.h.
|
friend |
Returns the value at index I
.
This case covers references to the iteratees.
Definition at line 2275 of file STLExtras.h.
|
friend |
Definition at line 2283 of file STLExtras.h.
|
staticconstexpr |
Definition at line 2239 of file STLExtras.h.
|
staticconstexpr |
Definition at line 2242 of file STLExtras.h.