- execution[meta header]
- class[meta id-type]
- std::execution[meta namespace]
- cpp26[meta cpp]
namespace std::execution {
class counting_scope;
}counting_scopeは、停止要求を作成可能なカウント式の非同期スコープを表現する。
クラス動作説明用のメンバ変数として下記を保持する。詳細仕様はsimple_counting_scopeを参照。
count:size_t型の関連付けカウント値state:scope-state-type列挙型(後述)の状態s_source:inplace_stop_source型の停止要求管理オブジェクト
| 名前 | 説明 | 対応バージョン |
|---|---|---|
(constructor) |
コンストラクタ | C++26 |
(destructor) |
デストラクタ | C++26 |
get_token |
非同期スコープトークンを取得 | C++26 |
close |
非同期スコープを閉じる | C++26 |
join |
非同期スコープを合流するSender取得 | C++26 |
request_stop |
停止要求を作成する | C++26 |
| 名前 | 説明 | 対応バージョン |
|---|---|---|
assoc-t |
association-t<counting_scope>(説明専用) |
C++26 |
token |
非同期スコープトークン型 | C++26 |
| 名前 | 説明 | 対応バージョン |
|---|---|---|
constexpr size_t max_associations = implementation-defined; |
関連付けの最大数 | C++26 |
- C++26
- Clang: ??
- GCC: ??
- ICC: ??
- Visual C++: ??