Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::StlEnumerateView< Container > Class Template Reference

Lazy view that pairs each element with its index. More...

#include <ah-stl-zip.H>

Public Types

using iterator = StlEnumerateIterator< std::decay_t< Container > >
 

Public Member Functions

constexpr StlEnumerateView (const Container &c)
 
constexpr iterator begin () const
 
constexpr iterator end () const
 

Private Attributes

const std::decay_t< Container > & container_
 

Detailed Description

template<typename Container>
class Aleph::StlEnumerateView< Container >

Lazy view that pairs each element with its index.

Template Parameters
ContainerContainer type.
Author
Leandro Rabindranath León

Definition at line 1099 of file ah-stl-zip.H.

Member Typedef Documentation

◆ iterator

Definition at line 1104 of file ah-stl-zip.H.

Constructor & Destructor Documentation

◆ StlEnumerateView()

template<typename Container >
constexpr Aleph::StlEnumerateView< Container >::StlEnumerateView ( const Container c)
inlineexplicitconstexpr

Definition at line 1106 of file ah-stl-zip.H.

Member Function Documentation

◆ begin()

template<typename Container >
constexpr iterator Aleph::StlEnumerateView< Container >::begin ( ) const
inlineconstexpr

Definition at line 1108 of file ah-stl-zip.H.

References Aleph::StlEnumerateView< Container >::container_.

◆ end()

template<typename Container >
constexpr iterator Aleph::StlEnumerateView< Container >::end ( ) const
inlineconstexpr

Definition at line 1110 of file ah-stl-zip.H.

References Aleph::StlEnumerateView< Container >::container_.

Member Data Documentation

◆ container_


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