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

#include <alpaqa/util/enumerate.hpp>

Detailed Description

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

Definition at line 9 of file enumerate.hpp.

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

Classes

struct  iter_t
 
struct  sentinel_t
 

Public Types

using begin_t = decltype(std::ranges::begin(std::as_const(rng)))
 
using end_t = decltype(std::ranges::end(std::as_const(rng)))
 

Public Member Functions

 enumerate_t ()=default
 
 enumerate_t (Rng rng)
 
auto begin () const -> std::input_or_output_iterator auto
 
auto end () const
 

Public Attributes

Rng rng
 

Class Documentation

◆ alpaqa::util::enumerate_t::sentinel_t

struct alpaqa::util::enumerate_t::sentinel_t
+ Collaboration diagram for enumerate_t< Rng >::sentinel_t:
Class Members
end_t it

Member Typedef Documentation

◆ begin_t

using begin_t = decltype(std::ranges::begin(std::as_const(rng)))

Definition at line 16 of file enumerate.hpp.

◆ end_t

using end_t = decltype(std::ranges::end(std::as_const(rng)))

Definition at line 17 of file enumerate.hpp.

Constructor & Destructor Documentation

◆ enumerate_t() [1/2]

enumerate_t ( )
default

◆ enumerate_t() [2/2]

enumerate_t ( Rng  rng)
inline

Definition at line 14 of file enumerate.hpp.

Member Function Documentation

◆ begin()

auto begin ( ) const -> std::input_or_output_iterator auto
inline

Definition at line 55 of file enumerate.hpp.

◆ end()

auto end ( ) const
inline

Definition at line 58 of file enumerate.hpp.

Member Data Documentation

◆ rng

Rng rng

Definition at line 10 of file enumerate.hpp.


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