Coroutine supportCoroutine traits |
|
Coroutine handle |
|
No-op coroutines |
|
|
Trivial awaitables |
|
|
Range generators |
|
/*iterator*/ begin(); | | (since C++23) |
| | |
Pushescoroutine_
into*active_
stack, then evaluatescoroutine_.resume().
Before invocation ofbegin()
thecoroutine_
must refer to a coroutine suspended at itsinitial suspend point.
[edit]Return value
An iterator whosecoroutine_
member refers to the same coroutine ascoroutine_
does.
It is an undefined behavior to callbegin()
more than once on the samegenerator
object.
[edit]Example
| This section is incomplete Reason: no example |