class /*iterator*/;
(exposition only*)The return type of generator::begin
. Models indirectly_readable
and input_iterator
.
coroutine_
The coroutine handle
/*iterator*/( /*iterator*/&& other ) noexcept;
(since C++23)Initializes coroutine_
with std::exchange(other.coroutine_, {});.
/*iterator*/& operator=( /*iterator*/&& other ) noexcept;
(since C++23)Equivalent to coroutine_ = std::exchange(other.coroutine_, {});.
Returns: *this.
std::generator::iterator::operator*reference
be the std::generator
's underlying type.coroutine_
be in the stack *x.active_.Equivalent to return static_cast<reference>(*p.value_);.
std::generator::iterator::operator++constexpr /*iterator*/& operator++();
(1) (since C++23)constexpr void operator++( int );
(2) (since C++23) 1)Let for some generator object
xthe
coroutine_
be in the stack
*x.active_.
Equivalent to x.active_->top().resume().
Returns: *this.
2) Equivalent to ++*this;.
[edit] Non-member functions compares the underlying iterator with a sentinelEquivalent to return i.coroutine_.done();.
The !=
operator is synthesized from operator==
.
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::generator::iterator
is an associated class of the arguments.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4