opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
osc::cpp23::generator< Ref, V >::iterator Class Referencefinal

#include <generator.h>

Public Types

using value_type = value
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 iterator (std::coroutine_handle< promise_type > coroutine)
 
 iterator (iterator &&other) noexcept
 
iteratoroperator= (iterator &&other) noexcept
 
reference operator* () const noexcept(std::is_nothrow_copy_constructible_v< reference >)
 
constexpr iteratoroperator++ ()
 
constexpr iteratoroperator++ (int)
 

Friends

bool operator== (const iterator &lhs, std::default_sentinel_t)
 

Member Typedef Documentation

◆ difference_type

template<class Ref , class V = void>
using osc::cpp23::generator< Ref, V >::iterator::difference_type = std::ptrdiff_t

◆ value_type

template<class Ref , class V = void>
using osc::cpp23::generator< Ref, V >::iterator::value_type = value

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<class Ref , class V = void>
osc::cpp23::generator< Ref, V >::iterator::iterator ( std::coroutine_handle< promise_type coroutine)
inlineexplicit

◆ iterator() [2/2]

template<class Ref , class V = void>
osc::cpp23::generator< Ref, V >::iterator::iterator ( iterator &&  other)
inlinenoexcept

Member Function Documentation

◆ operator*()

template<class Ref , class V = void>
reference osc::cpp23::generator< Ref, V >::iterator::operator* ( ) const
inlinenoexcept

◆ operator++() [1/2]

template<class Ref , class V = void>
constexpr iterator & osc::cpp23::generator< Ref, V >::iterator::operator++ ( )
inlineconstexpr

◆ operator++() [2/2]

template<class Ref , class V = void>
constexpr iterator & osc::cpp23::generator< Ref, V >::iterator::operator++ ( int  )
inlineconstexpr

◆ operator=()

template<class Ref , class V = void>
iterator & osc::cpp23::generator< Ref, V >::iterator::operator= ( iterator &&  other)
inlinenoexcept

Friends And Related Symbol Documentation

◆ operator==

template<class Ref , class V = void>
bool operator== ( const iterator lhs,
std::default_sentinel_t   
)
friend

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