alpaqa 1.0.0a8
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
enumerate_t< Rng >::iter_t Struct Reference

#include <alpaqa/include/alpaqa/util/enumerate.hpp>

Detailed Description

template<class Rng>
struct alpaqa::util::enumerate_t< Rng >::iter_t

Definition at line 23 of file enumerate.hpp.

+ Collaboration diagram for enumerate_t< Rng >::iter_t:

Public Types

using index_t = std::ranges::range_difference_t< Rng >
 
using difference_type = std::ptrdiff_t
 
using value_type = std::tuple< index_t, decltype(*it)>
 

Public Member Functions

 iter_t ()=default
 
 iter_t (begin_t &&it)
 
bool operator!= (sentinel_t s) const
 
bool operator== (sentinel_t s) const
 
iter_toperator++ ()
 
iter_t operator++ (int) const
 
value_type operator* () const
 

Public Attributes

index_t index {}
 
begin_t it
 

Member Typedef Documentation

◆ index_t

using index_t = std::ranges::range_difference_t<Rng>

Definition at line 28 of file enumerate.hpp.

◆ difference_type

using difference_type = std::ptrdiff_t

Definition at line 32 of file enumerate.hpp.

◆ value_type

using value_type = std::tuple<index_t, decltype(*it)>

Definition at line 33 of file enumerate.hpp.

Constructor & Destructor Documentation

◆ iter_t() [1/2]

iter_t ( )
default

◆ iter_t() [2/2]

iter_t ( begin_t &&  it)
inline

Definition at line 26 of file enumerate.hpp.

Member Function Documentation

◆ operator!=()

bool operator!= ( sentinel_t  s) const
inline

Definition at line 35 of file enumerate.hpp.

◆ operator==()

bool operator== ( sentinel_t  s) const
inline

Definition at line 36 of file enumerate.hpp.

◆ operator++() [1/2]

iter_t & operator++ ( )
inline

Definition at line 41 of file enumerate.hpp.

◆ operator++() [2/2]

iter_t operator++ ( int  ) const
inline

Definition at line 46 of file enumerate.hpp.

◆ operator*()

value_type operator* ( ) const
inline

Definition at line 52 of file enumerate.hpp.

Member Data Documentation

◆ index

index_t index {}

Definition at line 29 of file enumerate.hpp.

◆ it

begin_t it

Definition at line 30 of file enumerate.hpp.


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