Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 895 Bytes

File metadata and controls

36 lines (26 loc) · 895 Bytes

コンストラクタ

  • generator[meta header]
  • std[meta namespace]
  • generator[meta class]
  • function[meta id-type]
  • cpp23[meta cpp]
generator(const generator&) = delete;   // (1)
generator(generator&& other) noexcept;  // (2)

概要

有効なgeneratorオブジェクトは、ジェネレータコルーチン呼び出しによってのみ生成される。

  • (1) コピーコンストラクタ : コピー禁止。
  • (2) ムーブコンストラクタ

例外

投げない

備考

  • (2) ムーブ前にotherから取得したイテレータは無効化されず、*thisに対応するイテレータとなる。

バージョン

言語

  • C++23

処理系