Namespaces
Variants

std::generator<Ref,V,Allocator>:: begin

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
Ranges library
Range adaptors
/*iterator*/ begin ( ) ;
(C++23以降)

coroutine_ * active_ スタックにプッシュし、その後 coroutine_. resume ( ) を評価します。

begin() の呼び出し前に、 coroutine_ 初期サスペンドポイント で停止しているコルーチンを参照している必要があります。

戻り値

coroutine_ メンバが coroutine_ と同じコルーチンを参照するイテレータ。

注記

同じ generator オブジェクトに対して begin() を複数回呼び出すことは未定義動作です。