LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
util::details::RangeForWrapperIterator< BeginIter, EndIter >::IndexAccessor Struct Reference

Visitor to access element by index. More...

Inheritance diagram for util::details::RangeForWrapperIterator< BeginIter, EndIter >::IndexAccessor:

Classes

struct  IndexAccessorImpl
 
struct  IndexAccessorImpl< Result, Iter, std::enable_if_t< is_type_v< decltype((std::declval< Iter >())[0])> > >
 

Public Member Functions

 IndexAccessor (difference_type offset)
 
template<typename Iter >
bool operator() (Iter &iter) const
 

Public Attributes

difference_type offset
 

Detailed Description

template<typename BeginIter, typename EndIter>
struct util::details::RangeForWrapperIterator< BeginIter, EndIter >::IndexAccessor

Visitor to access element by index.

Definition at line 213 of file RangeForWrapper.h.

Constructor & Destructor Documentation

template<typename BeginIter , typename EndIter >
util::details::RangeForWrapperIterator< BeginIter, EndIter >::IndexAccessor::IndexAccessor ( difference_type  offset)
inline

Definition at line 217 of file RangeForWrapper.h.

Member Function Documentation

template<typename BeginIter , typename EndIter >
template<typename Iter >
bool util::details::RangeForWrapperIterator< BeginIter, EndIter >::IndexAccessor::operator() ( Iter &  iter) const
inline

Definition at line 220 of file RangeForWrapper.h.

221  {
222  return IndexAccessorImpl<reference, Iter>(offset).access(iter);
223  }

Member Data Documentation

template<typename BeginIter , typename EndIter >
difference_type util::details::RangeForWrapperIterator< BeginIter, EndIter >::IndexAccessor::offset

Definition at line 215 of file RangeForWrapper.h.


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