Skip to content

Commit 4f805fa

Browse files
committed
stop_token: never_stop_token (#1384)
1 parent fa3f23c commit 4f805fa

4 files changed

Lines changed: 66 additions & 3 deletions

File tree

reference/stop_token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
| [`stop_source`](stop_token/stop_source.md) | 停止要求を発生させるクラス (class) | C++20 |
2121
| [`stop_callback`](stop_token/stop_callback.md)| 停止要求に応じて呼び出されるコールバック (class template) | C++20 |
2222
| [`nostopstate`](stop_token/nostopstate.md) | 停止状態を扱わない[`stop_source`](stop_token/stop_source.md)を構築するためのタグ (class) | C++20 |
23-
| [`never_stop_token`](stop_token/never_stop_token.md.nolink) | 停止不可能な停止トークン (class) | C++26 |
23+
| [`never_stop_token`](stop_token/never_stop_token.md) | 停止不可能な停止トークン (class) | C++26 |
2424
| [`inplace_stop_token`](stop_token/inplace_stop_token.md.nolink) | インプレース停止トークン (class) | C++26 |
2525
| [`inplace_stop_source`](stop_token/inplace_stop_source.md.nolink) | インプレース停止要求を発生させるクラス (class) | C++26 |
2626
| [`inplace_stop_callback`](stop_token/inplace_stop_callback.md.nolink) | インプレース停止要求に応じて呼び出されるコールバック (class template) | C++26 |
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# never_stop_token
2+
* stop_token[meta header]
3+
* class[meta id-type]
4+
* std[meta namespace]
5+
* cpp26[meta cpp]
6+
7+
```cpp
8+
namespace std {
9+
class never_stop_token;
10+
}
11+
```
12+
13+
## 概要
14+
15+
停止不可能な停止トークン。[`unstoppable_token`](unstoppable_token.md)コンセプトのモデル。
16+
17+
18+
## メンバ関数
19+
20+
| 名前 | 説明 | 対応バージョン |
21+
|-----------------|----------------|----------------|
22+
| `(constructor)` | コンストラクタ | C++26 |
23+
| `(destructor)` | デストラクタ | C++26 |
24+
| `bool operator==(const never_stop_token&) const = default;` | 等値比較 | C++26 |
25+
| `bool operator!=(const never_stop_token&) const;` | 非等値比較 (`==`により使用可能) | C++26 |
26+
27+
## 静的メンバ関数
28+
29+
| 名前 | 説明 | 対応バージョン |
30+
|-----------------|----------------|----------------|
31+
| `stop_requested` | `false`を返す | C++26 |
32+
| `stop_possible` | `false`を返す | C++26 |
33+
34+
## メンバ型
35+
36+
| 名前 | 説明 | 対応バージョン |
37+
|-----------------|----------------|----------------|
38+
| `callback_type` | 説明専用の`callback-type`型 | C++26 |
39+
40+
```cpp
41+
struct callback-type {
42+
explicit callback-type(never_stop_token, auto&&) noexcept {}
43+
};
44+
```
45+
46+
47+
## バージョン
48+
### 言語
49+
- C++26
50+
51+
### 処理系
52+
- [Clang](/implementation.md#clang): ??
53+
- [GCC](/implementation.md#gcc): ??
54+
- [ICC](/implementation.md#icc): ??
55+
- [Visual C++](/implementation.md#visual_cpp): ??
56+
57+
58+
## 関連項目
59+
- [`unstoppable_token`](unstoppable_token.md)
60+
61+
62+
## 参照
63+
- [P2300R10 `std::execution`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html)

reference/stop_token/stoppable_token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ concept stoppable-callback-for =
110110
- [`unstoppable_token`](unstoppable_token.md)
111111
- [`stop_token`](stop_token.md)
112112
- [`inplace_stop_token`](inplace_stop_token.md.nolink)
113-
- [`never_stop_token`](never_stop_token.md.nolink)
113+
- [`never_stop_token`](never_stop_token.md)
114114

115115

116116
## 参照

reference/stop_token/unstoppable_token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace std {
3535
3636
## 関連項目
3737
- [`stoppable_token`](stoppable_token.md)
38-
- [`never_stop_token`](never_stop_token.md.nolink)
38+
- [`never_stop_token`](never_stop_token.md)
3939
4040
## 参照
4141
- [P2300R10 `std::execution`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html)

0 commit comments

Comments
 (0)