cppx-core
Public Member Functions | Friends | List of all members
cppx::Enumerated_< Collection >::Iterator Class Reference

#include <Enumerated_.hpp>

Inheritance diagram for cppx::Enumerated_< Collection >::Iterator:
Inheritance graph
[legend]
Collaboration diagram for cppx::Enumerated_< Collection >::Iterator:
Collaboration graph
[legend]

Public Member Functions

void advance ()
 
auto operator * () const -> Item_and_index
 
 Iterator (const Collection_iterator it, const Index i)
 
- Public Member Functions inherited from cppx::Forward_iterator_impl_< Iterator, Item_and_index >
auto operator++ () -> const Iterator &
 
auto operator++ (int) -> Iterator
 

Friends

auto operator== (const Iterator &a, const Iterator &b) -> Truth
 

Additional Inherited Members

- Public Types inherited from cppx::Forward_iterator_impl_< Iterator, Item_and_index >
using difference_type = Size
 
using value_type = Item_and_index
 
using pointer = P_< value_type >
 
using reference = const value_type &
 
using iterator_category = forward_iterator_tag
 
using Value = Item_and_index
 

Detailed Description

template<class Collection>
class cppx::Enumerated_< Collection >::Iterator

Definition at line 36 of file Enumerated_.hpp.

Constructor & Destructor Documentation

◆ Iterator()

template<class Collection >
cppx::Enumerated_< Collection >::Iterator::Iterator ( const Collection_iterator  it,
const Index  i 
)
inlineexplicit

Definition at line 53 of file Enumerated_.hpp.

Member Function Documentation

◆ advance()

template<class Collection >
void cppx::Enumerated_< Collection >::Iterator::advance ( )
inline

Definition at line 43 of file Enumerated_.hpp.

◆ operator *()

template<class Collection >
auto cppx::Enumerated_< Collection >::Iterator::operator * ( ) const -> Item_and_index
inline

Definition at line 45 of file Enumerated_.hpp.

Friends And Related Function Documentation

◆ operator==

template<class Collection >
auto operator== ( const Iterator a,
const Iterator b 
) -> Truth
friend

Definition at line 49 of file Enumerated_.hpp.


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