HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
v1::generator< T & >::const_iterator Class Reference

#include <hikogui/utility/generator.hpp>

Public Types

using difference_type = ptrdiff_t
using value_type = std::decay_t<value_type>
using pointer = value_type const *
using reference = value_type const&
using iterator_category = std::input_iterator_tag

Public Member Functions

 const_iterator (handle_type coroutine)
const_iterator & operator++ ()
 Resume the generator-function.
value_proxy operator++ (int)
decltype(auto) operator* () const
 Retrieve the value co_yielded by the generator-function.
pointer * operator-> () const noexcept
bool at_end () const noexcept
bool operator== (std::default_sentinel_t) const noexcept
 Check if the generator-function has finished.

Detailed Description

template<typename T>
class v1::generator< T & >::const_iterator

A forward iterator which iterates through values co_yieled by the generator-function.

Member Function Documentation

◆ operator*()

template<typename T>
decltype(auto) v1::generator< T & >::const_iterator::operator* ( ) const
inline

Retrieve the value co_yielded by the generator-function.

◆ operator++()

template<typename T>
const_iterator & v1::generator< T & >::const_iterator::operator++ ( )
inline

Resume the generator-function.

◆ operator==()

template<typename T>
bool v1::generator< T & >::const_iterator::operator== ( std::default_sentinel_t ) const
inlinenodiscardnoexcept

Check if the generator-function has finished.


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