MySQL 8.0.40
Source Code Documentation
stdx::ranges::enumerate_view< V >::iterator< Const > Class Template Reference

#include <ranges.h>

Public Types

using iterator_category = std::input_iterator_tag
 
using index_type = size_t
 
using reference = std::tuple< index_type, range_reference_t< Base > >
 
using value_type = std::tuple< index_type, range_value_t< Base > >
 

Public Member Functions

constexpr iterator (iterator_t< Base > current, index_type pos)
 
constexpr bool operator!= (const iterator &other) const
 
constexpr iteratoroperator++ ()
 
constexpr decltype(auto) operator* () const
 

Private Types

using Base = std::conditional_t< Const, const V, V >
 

Private Attributes

index_type pos_
 
iterator_t< Basecurrent_
 

Member Typedef Documentation

◆ Base

template<class V >
template<bool Const>
using stdx::ranges::enumerate_view< V >::iterator< Const >::Base = std::conditional_t<Const, const V, V>
private

◆ index_type

template<class V >
template<bool Const>
using stdx::ranges::enumerate_view< V >::iterator< Const >::index_type = size_t

◆ iterator_category

template<class V >
template<bool Const>
using stdx::ranges::enumerate_view< V >::iterator< Const >::iterator_category = std::input_iterator_tag

◆ reference

template<class V >
template<bool Const>
using stdx::ranges::enumerate_view< V >::iterator< Const >::reference = std::tuple<index_type, range_reference_t<Base> >

◆ value_type

template<class V >
template<bool Const>
using stdx::ranges::enumerate_view< V >::iterator< Const >::value_type = std::tuple<index_type, range_value_t<Base> >

Constructor & Destructor Documentation

◆ iterator()

template<class V >
template<bool Const>
constexpr stdx::ranges::enumerate_view< V >::iterator< Const >::iterator ( iterator_t< Base current,
index_type  pos 
)
inlineexplicitconstexpr

Member Function Documentation

◆ operator!=()

template<class V >
template<bool Const>
constexpr bool stdx::ranges::enumerate_view< V >::iterator< Const >::operator!= ( const iterator< Const > &  other) const
inlineconstexpr

◆ operator*()

template<class V >
template<bool Const>
constexpr decltype(auto) stdx::ranges::enumerate_view< V >::iterator< Const >::operator* ( ) const
inlineconstexpr

◆ operator++()

template<class V >
template<bool Const>
constexpr iterator & stdx::ranges::enumerate_view< V >::iterator< Const >::operator++ ( )
inlineconstexpr

Member Data Documentation

◆ current_

template<class V >
template<bool Const>
iterator_t<Base> stdx::ranges::enumerate_view< V >::iterator< Const >::current_
private

◆ pos_

template<class V >
template<bool Const>
index_type stdx::ranges::enumerate_view< V >::iterator< Const >::pos_
private

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