Namespaces
Variants

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

From cppreference.net
Utilities library
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
Range generators
(C++23)
Ranges library
Range adaptors
generator ( const generator & ) = delete ;
(1) (C++23以降)
generator ( generator && other ) noexcept ;
(2) (C++23以降)

generator を構築します。

1) コピーコンストラクタは削除されています。
2) 基盤となる coroutine_ std:: exchange ( other. coroutine_ , { } ) で初期化し、基盤となるコルーチンハンドルのスタック( active_ )を std:: exchange ( other. active_ , nullptr ) で初期化するムーブコンストラクタ。 注意: other から以前に取得したイテレータは無効化されないが、 * this へのイテレータとなる。

パラメータ

その他 - ムーブされるジェネレータオブジェクト