-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrss.xml
1578 lines (1441 loc) · 61.4 KB
/
rss.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>cpprefjp - C++日本語リファレンス</title>
<link href="https://cpprefjp.github.io" />
<updated>2025-04-14T16:23:22.761668</updated>
<id>27e240a6-0188-46ed-b7e4-24649985af69</id>
<entry>
<title>env -- execution/env: fix ngword</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/env.html"/>
<id>92a7237ce2698f7bc6fcaed781f171f579040706:reference/execution/execution/env.md</id>
<updated>2025-04-15T01:19:47+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/env.md b/reference/execution/execution/env.md
index df547da64..4ebb6362c 100644
--- a/reference/execution/execution/env.md
+++ b/reference/execution/execution/env.md
@@ -30,7 +30,7 @@ namespace std::execution {
`env`の特殊化は代入可能ではない。
-式リストが単一要素で構成される場合を除いて、`env`が括弧を用いた式リストによる初期化をサポートするか否かは未規定。
+式リストが単一要素で構成される場合を除いて、`env`が丸カッコを用いた式リストによる初期化をサポートするか否かは未規定。
## メンバ関数
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>execution -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution.md b/reference/execution/execution.md
index 920223549..15206c657 100644
--- a/reference/execution/execution.md
+++ b/reference/execution/execution.md
@@ -35,22 +35,22 @@ namespace std::execution {
| 名前 | 説明 | 対応バージョン |
|------|------|----------------|
-| [`forwarding_query`](forwarding_query.md.nolink) | 進行保証の問い合わせオブジェクト (customization point object) | C++26 |
-| [`get_allocator`](get_allocator.md.nolink) | アロケータ取得の問い合わせオブジェクト (customization point object) | C++26 |
-| [`get_stop_token`](get_stop_token.md.nolink) | 停止トークン取得の問い合わせオブジェクト (customization point object) | C++26 |
+| [`forwarding_query`](forwarding_query.md.nolink) | クエリオブジェクトに転送問い合わせ可能か否かを返す (customization point object) | C++26 |
+| [`get_allocator`](get_allocator.md.nolink) | アロケータ取得のクエリオブジェクト (customization point object) | C++26 |
+| [`get_stop_token`](get_stop_token.md.nolink) | 停止トークン取得のクエリオブジェクト (customization point object) | C++26 |
| [`stop_token_of_t`](get_stop_token.md.nolink) | 指定型から停止トークン型を取得 (alias template) | C++26 |
-| [`execution::get_domain`](execution/get_domain.md.nolink) | 実行ドメイン取得の問い合わせオブジェクト (customization point object) | C++26 |
-| [`execution::get_scheduler`](execution/get_scheduler.md.nolink) | Scheduler取得の問い合わせオブジェクト (customization point object) | C++26 |
-| [`execution::get_delegation_scheduler`](execution/get_delegation_scheduler.md.nolink) | 委譲Scheduler取得の問い合わせオブジェクト (customization point object) | C++26 |
+| [`execution::get_domain`](execution/get_domain.md.nolink) | 実行ドメイン取得のクエリオブジェクト (customization point object) | C++26 |
+| [`execution::get_scheduler`](execution/get_scheduler.md.nolink) | Scheduler取得のクエリオブジェクト (customization point object) | C++26 |
+| [`execution::get_delegation_scheduler`](execution/get_delegation_scheduler.md.nolink) | 委譲Scheduler取得のクエリオブジェクト (customization point object) | C++26 |
| [`execution::forward_progress_guarantee`](execution/forward_progress_guarantee.md.nolink) | 前進保証 (enum) | C++26 |
-| [`execution::get_forward_progress_guarantee`](execution/get_forward_progress_guarantee.md.nolink) | 前進保証取得の問い合わせオブジェクト (customization point object) | C++26 |
-| [`execution::get_completion_scheduler`](execution/get_completion_scheduler.md.nolink) | 完了Scheduler取得の問い合わせオブジェクト (customization point object) | C++26 |
-| [`execution::get_env`](execution/get_env.md.nolink) | 環境取得の問い合わせオブジェクト (customization point object) | C++26 |
+| [`execution::get_forward_progress_guarantee`](execution/get_forward_progress_guarantee.md.nolink) | 前進保証取得のクエリオブジェクト (customization point object) | C++26 |
+| [`execution::get_completion_scheduler`](execution/get_completion_scheduler.md.nolink) | 完了Scheduler取得のクエリオブジェクト (customization point object) | C++26 |
+| [`execution::get_env`](execution/get_env.md.nolink) | 環境取得のクエリオブジェクト (customization point object) | C++26 |
| [`execution::env_of_t`](execution/env_of_t.md.nolink) | 指定型から環境型を取得 (alias template) | C++26 |
-| [`execution::prop`](execution/prop.md.nolink) | プロパティ(class template) | C++26 |
-| [`execution::env`](execution/env.md.nolink) | 環境 (class template) | C++26 |
+| [`execution::prop`](execution/prop.md) | 環境構築用のヘルパクラス (class template) | C++26 |
+| [`execution::env`](execution/env.md) | 環境 (class template) | C++26 |
-問い合わせオブジェクトは名前空間 `std` および名前空間 `std::execution` で定義される。
+クエリオブジェクトは名前空間 `std` および名前空間 `std::execution` で定義される。
### Scheduler
@@ -83,14 +83,14 @@ namespace std::execution {
| [`execution::sender`](execution/sender.md) | Sender型 (concept) | C++26 |
| [`execution::sender_in`](execution/sender_in.md) | 指定環境で有効なSender (concept) | C++26 |
| [`execution::sender_to`](execution/sender_to.md) | 指定Receiverに接続可能なSender (concept) | C++26 |
-| [`execution::get_completion_signatures`](execution/get_completion_signatures.md.nolink) | 完了シグネチャ集合取得の問い合わせオブジェクト (customization point object) | C++26 |
+| [`execution::get_completion_signatures`](execution/get_completion_signatures.md.nolink) | 完了シグネチャ集合取得のクエリオブジェクト (customization point object) | C++26 |
| [`execution::completion_signatures_of_t`](execution/completion_signatures_of_t.md) | Senderから完了シグネチャ集合を取得 (alias template) | C++26 |
| [`execution::value_types_of_t`](execution/value_types_of_t.md.nolink) | Senderの値完了型を取得 (alias template) | C++26 |
| [`execution::error_types_of_t`](execution/error_types_of_t.md.nolink) | Senderのエラー完了型を取得 (alias template) | C++26 |
| [`execution::sends_stopped`](execution/value_types_of_t.md.nolink) | Senderが停止完了に対応するか否か (variable template) | C++26 |
| [`execution::tag_of_t`](execution/tag_of_t.md.nolink) | Senderのタグ型を取得 (alias template) | C++26 |
| [`execution::transform_sender`](execution/transform_sender.md.nolink) | Senderを変換 (function template) | C++26 |
-| [`execution::transform_env`](execution/transform_env.md.nolink) | 問い合わせオブジェクトを変換 (function template) | C++26 |
+| [`execution::transform_env`](execution/transform_env.md.nolink) | クエリオブジェクトを変換 (function template) | C++26 |
| [`execution::apply_sender`](execution/apply_sender.md.nolink) | Senderにタグ型と引数を適用 (function template) | C++26 |
| [`execution::connect`](execution/connect.md.nolink) | SenderとReceiverを接続 (customization point object) | C++26 |
| [`execution::connect_result_t`](execution/connect_result_t.md.nolink) | `connect`結果型を取得 (alias template) | C++26 |
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>completion_signatures_of_t -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/completion_signatures_of_t.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/completion_signatures_of_t.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/completion_signatures_of_t.md b/reference/execution/execution/completion_signatures_of_t.md
index 6a4fc2009..6429a2714 100644
--- a/reference/execution/execution/completion_signatures_of_t.md
+++ b/reference/execution/execution/completion_signatures_of_t.md
@@ -11,14 +11,14 @@ namespace std::execution {
using completion_signatures_of_t = call-result-t&lt;get_completion_signatures_t, Sndr, Env&gt;;
}
```
-* env&lt;&gt;[link env.md.nolink]
+* env&lt;&gt;[link env.md]
* sender_in[link sender_in.md]
* call-result-t[link call-result-t.md.nolink]
* sender_in[link sender_in.md]
## 概要
-[Sender型](sender.md)`Sndr`から[環境](env.md.nolink)`Env`における[完了シグネチャ集合](completion_signatures.md)を取得する。
+[Sender型](sender.md)`Sndr`から[環境](env.md)`Env`における[完了シグネチャ集合](completion_signatures.md)を取得する。
## バージョン
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>env -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/env.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/env.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/env.md b/reference/execution/execution/env.md
new file mode 100644
index 000000000..df547da64
--- /dev/null
+++ b/reference/execution/execution/env.md
@@ -0,0 +1,83 @@
+# env
+* execution[meta header]
+* class template[meta id-type]
+* std::execution[meta namespace]
+* cpp26[meta cpp]
+
+```cpp
+namespace std::execution {
+ template&lt;queryable... Envs&gt;
+ struct env {
+ Envs0 envs0_; // exposition only
+ Envs1 envs1_; // exposition only
+ // ...
+ EnvsN envsN_; // exposition only
+
+ template&lt;class QueryTag&gt;
+ constexpr decltype(auto) query(QueryTag q) const noexcept;
+ };
+
+ template&lt;class... Envs&gt;
+ env(Envs...) -&gt; env&lt;unwrap_reference_t&lt;Envs&gt;...&gt;;
+}
+```
+* queryable[link ../queryable.md]
+* unwrap_reference_t[link /reference/type_traits/unwrap_reference.md]
+
+## 概要
+クラステンプレート`env`は、複数の[クエリ可能オブジェクト](../queryable.md)からクエリ可能オブジェクトを作成する。
+結果オブジェクト上に対する問い合わせは、各サブオブジェクトに対して宣言順に問い合わせを行うことで解決される。
+
+`env`の特殊化は代入可能ではない。
+
+式リストが単一要素で構成される場合を除いて、`env`が括弧を用いた式リストによる初期化をサポートするか否かは未規定。
+
+
+## メンバ関数
+
+| 名前 | 説明 | 対応バージョン |
+|-----------------|----------------|-------|
+| `(constructor)` | コンストラクタ | C++26 |
+| `(destructor)` | デストラクタ | C++26 |
+| [`query`](env/query.md) | 問い合わせ | C++26 |
+
+
+## 例
+```cpp example
+#include &lt;stop_token&gt;
+#include &lt;execution&gt;
+namespace ex = std::execution;
+
+int main()
+{
+ auto env = ex::env{
+ ex::prop(std::get_stop_token, std::never_stop_token{})
+ };
+}
+```
+* ex::env[color ff0000]
+* ex::prop[link prop.md]
+* std::never_stop_token[link /reference/stop_token/never_stop_token.md]
+
+### 出力
+```
+```
+
+
+## バージョン
+### 言語
+- C++26
+
+### 処理系
+- [Clang](/implementation.md#clang): ??
+- [GCC](/implementation.md#gcc): ??
+- [ICC](/implementation.md#icc): ??
+- [Visual C++](/implementation.md#visual_cpp): ??
+
+
+## 関連項目
+- [`execution::prop`](prop.md)
+
+
+## 参照
+- [P3325R5 A Utility for Creating Execution Environments](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3325r5.html)
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>query -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/env/query.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/env/query.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/env/query.md b/reference/execution/execution/env/query.md
new file mode 100644
index 000000000..171fa25da
--- /dev/null
+++ b/reference/execution/execution/env/query.md
@@ -0,0 +1,80 @@
+# query
+* execution[meta header]
+* std::execution[meta namespace]
+* env[meta class]
+* function template[meta id-type]
+* cpp26[meta cpp]
+
+```cpp
+template&lt;class QueryTag&gt;
+constexpr decltype(auto) query(QueryTag q) const noexcept(see below);
+```
+* see below[italic]
+
+## 概要
+クエリオブジェクト`q`に対して問い合わせを行う。
+
+
+## テンプレートパラメータ制約
+説明専用のコンセプト`has-query`を次のように定義したとき、`(has-query&lt;Envs, QueryTag&gt; || ...)`が`true`であること。
+
+```cpp
+template&lt;class Env, class QueryTag&gt;
+concept has-query =
+ requires (const Env&amp; env) {
+ env.query(QueryTag());
+ };
+```
+
+## 効果
+説明用の`fe`を、`env`クラステンプレートの説明専用メンバ変数`envs0_`, ..., `envsN_`のうち最初に式`fe.query(q)`が適格となる要素としたとき、下記と等価。
+
+```cpp
+return fe.query(q);
+```
+
+## 例外
+式`fe.query(q)`が`true`のとき、例外送出しない。
+
+
+## 例
+```cpp example
+#include &lt;concepts&gt;
+#include &lt;stop_token&gt;
+#include &lt;execution&gt;
+using ex = std::execution;
+
+int main()
+{
+ auto env = ex::env{
+ ex::prop(std::get_stop_token, std::stop_token{}),
+ ex::prop(std::get_allocator, std::allocator&lt;std::byte&gt;{}),
+ ex::prop(std::get_stop_token, std::never_stop_token{}),
+ };
+
+ auto token = env.query(std::get_stop_token);
+ static_assert(std::same_as&lt;decltype(token), std::stop_token&gt;);
+}
+```
+* query[color ff0000]
+* ex::env[link ../env.md]
+* ex::prop[link ../prop.md]
+
+### 出力
+```
+```
+
+
+## バージョン
+### 言語
+- C++26
+
+### 処理系
+- [Clang](/implementation.md#clang): ??
+- [GCC](/implementation.md#gcc): ??
+- [ICC](/implementation.md#icc): ??
+- [Visual C++](/implementation.md#visual_cpp): ??
+
+
+## 参照
+- [P3325R5 A Utility for Creating Execution Environments](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3325r5.html)
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>prop -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/prop.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/prop.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/prop.md b/reference/execution/execution/prop.md
new file mode 100644
index 000000000..064085cf1
--- /dev/null
+++ b/reference/execution/execution/prop.md
@@ -0,0 +1,75 @@
+# prop
+* execution[meta header]
+* class template[meta id-type]
+* std::execution[meta namespace]
+* cpp26[meta cpp]
+
+```cpp
+namespace std::execution {
+ template&lt;class QueryTag, class ValueType&gt;
+ struct prop {
+ QueryTag query_; // exposition only
+ ValueType value_; // exposition only
+
+ constexpr const ValueType&amp; query(QueryTag) const noexcept {
+ return value_;
+ }
+ };
+
+ template&lt;class QueryTag, class ValueType&gt;
+ prop(QueryTag, ValueType) -&gt; prop&lt;QueryTag, unwrap_reference_t&lt;ValueType&gt;&gt;;
+}
+```
+* unwrap_reference_t[link /reference/type_traits/unwrap_reference.md]
+
+## 概要
+`QueryTag`型クエリオブジェクトのキーと`ValueType`型の値から、読み取り専用の[クエリ可能オブジェクト](../queryable.md)を構築する。
+
+
+## 適格要件
+説明用の`prop-like`テンプレートクラスを用いて、`QueryTag`と`ValueType`が`callable&lt;QueryTag, prop-like&lt;ValueType&gt;&gt;`のモデルであること。
+
+```cpp
+template&lt;class ValueType&gt;
+struct prop-like {
+ const ValueType&amp; query(auto) const noexcept;
+};
+```
+
+
+## 例
+```cpp example
+#include &lt;stop_token&gt;
+#include &lt;execution&gt;
+namespace ex = std::execution;
+
+int main()
+{
+ auto env0 = ex::prop(std::get_stop_token, std::never_stop_token{});
+}
+```
+* ex::prop[color ff0000]
+* std::never_stop_token[link /reference/stop_token/never_stop_token.md]
+
+### 出力
+```
+```
+
+
+## バージョン
+### 言語
+- C++26
+
+### 処理系
+- [Clang](/implementation.md#clang): ??
+- [GCC](/implementation.md#gcc): ??
+- [ICC](/implementation.md#icc): ??
+- [Visual C++](/implementation.md#visual_cpp): ??
+
+
+## 関連項目
+- [`execution::env`](env.md)
+
+
+## 参照
+- [P3325R5 A Utility for Creating Execution Environments](https://open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3325r5.html)
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>receiver -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/receiver.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/receiver.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/receiver.md b/reference/execution/execution/receiver.md
index b611d9882..bb7c46198 100644
--- a/reference/execution/execution/receiver.md
+++ b/reference/execution/execution/receiver.md
@@ -19,7 +19,7 @@ namespace std::execution {
}
```
* get_env[link get_env.md.nolink]
-* queryable[link queryable.md.nolink]
+* queryable[link ../queryable.md]
* derived_from[link /reference/concepts/derived_from.md]
* move_constructible[link /reference/concepts/move_constructible.md]
* constructible_from[link /reference/concepts/constructible_from.md]
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>scheduler -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/scheduler.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/scheduler.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/scheduler.md b/reference/execution/execution/scheduler.md
index 7c1ea0931..a89bb8d47 100644
--- a/reference/execution/execution/scheduler.md
+++ b/reference/execution/execution/scheduler.md
@@ -24,7 +24,7 @@ namespace std::execution {
```
* derived_from[link /reference/concepts/derived_from.md]
* sender[link sender.md]
-* queryable[link queryable.md.nolink]
+* queryable[link ../queryable.md]
* get_completion_scheduler[link get_completion_scheduler.md.nolink]
* set_value_t[link set_value.md]
* get_env[link get_env.md.nolink]
@@ -36,8 +36,8 @@ namespace std::execution {
下記をみたすクラス型はSchedulerとみなせる。
-- `scheduler_t`をメンバ型`Sch::scheduler_concept`として定義するクラス型
-- [問い合わせ可能](queryable.md.nolink)であること
+- `scheduler_t`をメンバ型`Sch::scheduler_concept`として定義するクラス
+- [クエリ可能オブジェクト](../queryable.md)であること
- `Sch`型の値`sch`に対して下記が有効な式であること
- [`execution::schedule`](schedule.md.nolink)`(sch)`が[Sender](sender.md)を返すこと
- [`execution::get_completion_scheduler`](get_completion_scheduler.md.nolink)`&lt;`[`set_value_t`](set_value.md)`&gt;(`[`execution::get_env`](get_env.md.nolink)`(`[`execution::schedule`](schedule.md.nolink)`(sch)))`の結果が`Sch`型に等しいこと
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>sender -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/sender.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/sender.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/sender.md b/reference/execution/execution/sender.md
index 19c77f609..7d065640c 100644
--- a/reference/execution/execution/sender.md
+++ b/reference/execution/execution/sender.md
@@ -48,7 +48,7 @@ struct env-promise : with-await-transform&lt;env-promise&lt;Env&gt;&gt; {
};
```
* is-awaitable[link ../is-awaitable.md]
-* env&lt;&gt;[link env.md.nolink]
+* env&lt;&gt;[link env.md]
* derived_from[link /reference/concepts/derived_from.md]
* coroutine_handle&lt;&gt;[link /reference/coroutine/coroutine_handle.md]
* unspecified[italic]
@@ -66,7 +66,7 @@ concept sender =
constructible_from&lt;remove_cvref_t&lt;Sndr&gt;, Sndr&gt;;
```
* get_env[link get_env.md.nolink]
-* queryable[link queryable.md.nolink]
+* queryable[link ../queryable.md]
* move_constructible[link /reference/concepts/move_constructible.md]
* constructible_from[link /reference/concepts/constructible_from.md]
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>sender_in -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/sender_in.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/execution/sender_in.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/sender_in.md b/reference/execution/execution/sender_in.md
index f068b6882..1ef582f4d 100644
--- a/reference/execution/execution/sender_in.md
+++ b/reference/execution/execution/sender_in.md
@@ -16,13 +16,13 @@ namespace std::execution {
};
}
```
-* env&lt;&gt;[link env.md.nolink]
+* env&lt;&gt;[link env.md]
* sender[link sender.md]
-* queryable[link queryable.md.nolink]
+* queryable[link ../queryable.md]
* get_completion_signatures[link get_completion_signatures.md.nolink]
## 概要
-`sender_in`は、[Sender型](sender.md)`Sndr`が[環境](env.md.nolink)`Env`において非同期操作を作成できることを表すコンセプトである。
+`sender_in`は、[Sender型](sender.md)`Sndr`が[環境](env.md)`Env`において非同期操作を作成できることを表すコンセプトである。
## モデル
@@ -55,7 +55,7 @@ int main()
* ex::sender_in[color ff0000]
* ex::sender[link sender.md]
* ex::just[link just.md.nolink]
-* ex::env&lt;&gt;[link env.md.nolink]
+* ex::env&lt;&gt;[link env.md]
### 出力
```
@@ -75,7 +75,7 @@ int main()
## 関連項目
- [`execution::sender`](sender.md)
-- [`execution::env`](env.md.nolink)
+- [`execution::env`](env.md)
## 参照
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>queryable -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/queryable.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:reference/execution/queryable.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/queryable.md b/reference/execution/queryable.md
new file mode 100644
index 000000000..346b7d038
--- /dev/null
+++ b/reference/execution/queryable.md
@@ -0,0 +1,33 @@
+# queryable
+* execution[meta header]
+* concept[meta id-type]
+* std[meta namespace]
+* cpp26[meta cpp]
+
+```cpp
+template&lt;class T&gt;
+concept queryable = destructible&lt;T&gt;;
+```
+* destructible[link /reference/concepts/destructible.md]
+
+## 概要
+`queryable`は、型`T`がクエリ可能オブジェクトの制約を満たすことを表す説明専用のコンセプトである。
+
+
+## モデル
+説明用の`env`を`Env`型のオブジェクトとする。
+呼び出し可能オブジェクト`q`と部分式パック`args`に対して、`requires { q(env, args...) }`が`true`であれば、`q(env, args...)`が`q`に課されるセマンティック要件を満たす場合に、`Env`は`queryable`のモデルである。
+
+
+## バージョン
+### 言語
+- C++26
+
+
+## 関連項目
+- [`execution::prop`](execution/prop.md)
+- [`execution::env`](execution/env.md)
+
+
+## 参照
+- [P2300R10 `std::execution`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html)
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>スタイル -- execution: env,prop,queryable (#1384)</title>
<link href="https://cpprefjp.github.io/working_style.html"/>
<id>2d92c9fd2901685e95c87206c2754827357594fb:working_style.md</id>
<updated>2025-04-15T01:16:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/working_style.md b/working_style.md
index ed10d259b..86ed8088d 100644
--- a/working_style.md
+++ b/working_style.md
@@ -126,7 +126,8 @@ C++11以降対応については対応バージョンを明記します。バー
| predicate | 述語 |
| propagation, propagate | 伝播&lt;br/&gt; (伝搬は誤用が広まったものなので使わない) |
| pure virtual function | 純粋仮想関数 |
-| query object | 問い合わせオブジェクト |
+| query object | クエリオブジェクト |
+| queryable object | クエリ可能オブジェクト |
| random access iterator | ランダムアクセスイテレータ |
| range | 一般用途の場合:範囲&lt;br/&gt; Rangeアルゴリズム・Rangeアダプタ・Rangeオブジェクトの場合:Range&lt;br/&gt; range-based for:範囲for文&lt;br/&gt; 2つのイテレータによる範囲:イテレータ範囲 |
| region of RCU protection | RCU保護区間 |
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>sender -- execution: is-awaitable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/sender.html"/>
<id>c22f5566bef585080db7bde797aa85e25ba1e413:reference/execution/execution/sender.md</id>
<updated>2025-04-14T22:11:13+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/sender.md b/reference/execution/execution/sender.md
index 671e7c6cc..19c77f609 100644
--- a/reference/execution/execution/sender.md
+++ b/reference/execution/execution/sender.md
@@ -47,7 +47,7 @@ struct env-promise : with-await-transform&lt;env-promise&lt;Env&gt;&gt; {
const Env&amp; get_env() const noexcept;
};
```
-* is-awaitable[link is-awaitable.md.nolink]
+* is-awaitable[link ../is-awaitable.md]
* env&lt;&gt;[link env.md.nolink]
* derived_from[link /reference/concepts/derived_from.md]
* coroutine_handle&lt;&gt;[link /reference/coroutine/coroutine_handle.md]
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>is-awaitable -- execution: is-awaitable (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/is-awaitable.html"/>
<id>c22f5566bef585080db7bde797aa85e25ba1e413:reference/execution/is-awaitable.md</id>
<updated>2025-04-14T22:11:13+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/is-awaitable.md b/reference/execution/is-awaitable.md
new file mode 100644
index 000000000..c5cd3bec2
--- /dev/null
+++ b/reference/execution/is-awaitable.md
@@ -0,0 +1,66 @@
+# is-awaitable
+* execution[meta header]
+* concept[meta id-type]
+* std[meta namespace]
+* cpp26[meta cpp]
+
+```cpp
+template&lt;class C, class Promise&gt;
+concept is-awaitable;
+```
+
+## 概要
+`is-awaitable`は、Promise型をもつ[コルーチンのco_await演算子](/lang/cpp20/coroutines.md)オペランドにおいて`C`型オブジェクトが妥当であることを表す説明専用コンセプトである。
+
+
+## 要件
+説明用の式`GET-AWAITER(c, p)`を、Promise型`p`をもつコルーチン内の`co_await`演算子オペランドに適用される一連変換後の左辺値とする。
+
+- (有効ならば)Promise型の`await_transform`メンバ関数を適用
+- (有効ならば)`co_await`演算子オーバーロードを適用
+
+また、説明用のコンセプト`await-suspend-result`, `is-awaiter`を以下のように定義する。
+
+```cpp
+template&lt;class T&gt;
+concept await-suspend-result = /*see below*/;
+
+template&lt;class A, class Promise&gt;
+concept is-awaiter =
+ requires (A&amp; a, coroutine_handle&lt;Promise&gt; h) {
+ a.await_ready() ? 1 : 0;
+ { a.await_suspend(h) } -&gt; await-suspend-result;
+ a.await_resume();
+ };
+```
+* coroutine_handle[link /reference/coroutine/coroutine_handle.md]
+
+下記いずれかのうち1つが`true`のとき、`await-suspend-result&lt;T&gt;`は`true`となる。
+
+- `T`が`void`、もしくは
+- `T`が`bool`、もしくは
+- `T`が[`coroutine_handle`](/reference/coroutine/coroutine_handle.md)の特殊化
+
+`is-awaitable`コンセプトは、以下のように定義される。
+
+```cpp
+template&lt;class C, class Promise&gt;
+concept is-awaitable =
+ requires (C (*fc)() noexcept, Promise&amp; p) {
+ { GET-AWAITER(fc(), p) } -&gt; is-awaiter&lt;Promise&gt;;
+ };
+```
+* GET-AWAITER[italic]
+
+
+## バージョン
+### 言語
+- C++26
+
+
+## 関連項目
+- [コルーチン](/lang/cpp20/coroutines.md)
+
+
+## 参照
+- [P2300R10 `std::execution`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2300r10.html)
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>execution -- execution: set_value,set_error,set_stopped (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution.html"/>
<id>4220eb12586f2a76d36d7fa6533bb4f78944eaa7:reference/execution/execution.md</id>
<updated>2025-04-14T16:37:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution.md b/reference/execution/execution.md
index 1814d74cd..920223549 100644
--- a/reference/execution/execution.md
+++ b/reference/execution/execution.md
@@ -64,9 +64,9 @@ namespace std::execution {
|------|------|----------------|
| [`execution::receiver`](execution/receiver.md) | Receiver型 (concept) | C++26 |
| [`execution::receiver_of`](execution/receiver_of.md) | 指定完了シグネチャ集合に適合するReceiver (concept) | C++26 |
-| [`execution::set_value`](execution/set_value.md.nolink) | 値による完了関数 (customization point object) | C++26 |
-| [`execution::set_error`](execution/set_error.md.nolink) | エラーによる完了関数 (customization point object) | C++26 |
-| [`execution::set_stopped`](execution/set_stopped.md.nolink) | 停止による完了関数 (customization point object) | C++26 |
+| [`execution::set_value`](execution/set_value.md) | 値完了関数 (customization point object) | C++26 |
+| [`execution::set_error`](execution/set_error.md) | エラー完了関数 (customization point object) | C++26 |
+| [`execution::set_stopped`](execution/set_stopped.md) | 停止完了関数 (customization point object) | C++26 |
### Operation State
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>completion_signatures -- execution: set_value,set_error,set_stopped (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/completion_signatures.html"/>
<id>4220eb12586f2a76d36d7fa6533bb4f78944eaa7:reference/execution/execution/completion_signatures.md</id>
<updated>2025-04-14T16:37:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/completion_signatures.md b/reference/execution/execution/completion_signatures.md
index 1db91919a..b45088cbb 100644
--- a/reference/execution/execution/completion_signatures.md
+++ b/reference/execution/execution/completion_signatures.md
@@ -25,9 +25,9 @@ concept completion-signature = see below;
* see below[italic]
型`Fn`が下記いずれかを満たす関数型であるとき、`Fn`はコンセプト`completion-signature`を満たす。
-- `set_value_t(Vs...)`(`Vs`はオブジェクト型または参照型のパック)
-- `set_error_t(Err)`(`Err`はオブジェクト型または参照型)
-- `set_stopped_t()`
+- [`set_value_t`](set_value.md)`(Vs...)`(`Vs`はオブジェクト型または参照型のパック)
+- [`set_error_t`](set_error.md)`(Err)`(`Err`はオブジェクト型または参照型)
+- [`set_stopped_t`](set_stopped.md)`()`
## 例
@@ -50,6 +50,9 @@ int main()
}
```
* ex::completion_signatures[color ff0000]
+* ex::set_value_t[link set_value.md]
+* ex::set_error_t[link set_error.md]
+* ex::set_stopped_t[link set_stopped.md]
* std::exception_ptr[link /reference/exception/exception_ptr.md]
### 出力
@@ -70,6 +73,9 @@ int main()
## 関連項目
- [`execution::receiver`](receiver.md)
+- [`execution::set_value_t`](set_value.md)
+- [`execution::set_error_t`](set_error.md)
+- [`execution::set_stopped_t`](set_stopped.md)
## 参照
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>operation_state -- execution: set_value,set_error,set_stopped (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/operation_state.html"/>
<id>4220eb12586f2a76d36d7fa6533bb4f78944eaa7:reference/execution/execution/operation_state.md</id>
<updated>2025-04-14T16:37:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/operation_state.md b/reference/execution/execution/operation_state.md
index 09d93bb90..d221a8332 100644
--- a/reference/execution/execution/operation_state.md
+++ b/reference/execution/execution/operation_state.md
@@ -61,6 +61,7 @@ int main()
}
```
* ex::operation_state[color ff0000]
+* ex::receiver_t[link receiver.md]
* ex::sender[link sender.md]
* ex::just[link just.md.nolink]
* ex::connect[link connect.md.nolink]
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>receiver_of -- execution: set_value,set_error,set_stopped (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/receiver_of.html"/>
<id>4220eb12586f2a76d36d7fa6533bb4f78944eaa7:reference/execution/execution/receiver_of.md</id>
<updated>2025-04-14T16:37:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/receiver_of.md b/reference/execution/execution/receiver_of.md
index e030a93fb..5c16cab79 100644
--- a/reference/execution/execution/receiver_of.md
+++ b/reference/execution/execution/receiver_of.md
@@ -52,25 +52,38 @@ concept receiver_of =
#include &lt;execution&gt;
namespace ex = std::execution;
-struct ValueReceiver {
+struct MyReceiver {
using receiver_concept = ex::receiver_t;
- void set_value(int) noexcept;
+ void set_value(int, int) &amp;&amp; noexcept;
+ void set_error(int) &amp;&amp; noexcept;
};
int main()
{
- // 完了操作ex::set_value(int)に対応
- static_assert(ex::receiver_of&lt;ValueReceiver,
+ // 完了操作ex::set_value(int, int)に対応
+ static_assert(ex::receiver_of&lt;MyReceiver,
+ ex::completion_signatures&lt;ex::set_value_t(int, int)&gt;&gt;);
+
+ // 完了操作ex::set_value(int)には非対応
+ static_assert(not ex::receiver_of&lt;MyReceiver,
ex::completion_signatures&lt;ex::set_value_t(int)&gt;&gt;);
- // 完了操作ex::set_value(int, int)には非対応
- static_assert(not ex::receiver_of&lt;ValueReceiver,
- ex::completion_signatures&lt;ex::set_value_t(int, int)&gt;&gt;);
+ // 完了操作ex::set_error(int)に対応
+ static_assert(ex::receiver_of&lt;MyReceiver,
+ ex::completion_signatures&lt;ex::set_error_t(int)&gt;&gt;);
+
+ // 完了操作ex::set_stopped()には非対応
+ static_assert(not ex::receiver_of&lt;MyReceiver,
+ ex::completion_signatures&lt;ex::set_stopped_t()&gt;&gt;);
}
```
* ex::receiver_of[color ff0000]
+* ex::receiver_t[link receiver.md]
* ex::completion_signatures[link completion_signatures.md]
+* ex::set_value_t[link set_value.md]
+* ex::set_error_t[link set_error.md]
+* ex::set_stopped_t[link set_stopped.md]
### 出力
```
@@ -90,6 +103,9 @@ int main()
## 関連項目
- [`execution::receiver`](receiver.md)
+- [`execution::set_value_t`](set_value.md)
+- [`execution::set_error_t`](set_error.md)
+- [`execution::set_stopped_t`](set_stopped.md)
## 参照
</code></pre></summary>
<author>
<name>yoh</name>
<email>[email protected]</email>
</author>
</entry>
<entry>
<title>scheduler -- execution: set_value,set_error,set_stopped (#1384)</title>
<link href="https://cpprefjp.github.io/reference/execution/execution/scheduler.html"/>
<id>4220eb12586f2a76d36d7fa6533bb4f78944eaa7:reference/execution/execution/scheduler.md</id>
<updated>2025-04-14T16:37:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/execution/execution/scheduler.md b/reference/execution/execution/scheduler.md
index 364157770..7c1ea0931 100644
--- a/reference/execution/execution/scheduler.md
+++ b/reference/execution/execution/scheduler.md
@@ -23,8 +23,10 @@ namespace std::execution {
}
```
* derived_from[link /reference/concepts/derived_from.md]
+* sender[link sender.md]
* queryable[link queryable.md.nolink]
* get_completion_scheduler[link get_completion_scheduler.md.nolink]
+* set_value_t[link set_value.md]
* get_env[link get_env.md.nolink]
* equality_comparable[link /reference/concepts/equality_comparable.md]
* copyable[link /reference/concepts/copyable.md]
@@ -38,7 +40,7 @@ namespace std::execution {
- [問い合わせ可能](queryable.md.nolink)であること
- `Sch`型の値`sch`に対して下記が有効な式であること
- [`execution::schedule`](schedule.md.nolink)`(sch)`が[Sender](sender.md)を返すこと
- - [`execution::get_completion_scheduler`](get_completion_scheduler.md.nolink)`&lt;set_value_t&gt;(`[`execution::get_env`](get_env.md.nolink)`(`[`execution::schedule`](schedule.md.nolink)`(sch)))`の結果が`Sch`型に等しいこと
+ - [`execution::get_completion_scheduler`](get_completion_scheduler.md.nolink)`&lt;`[`set_value_t`](set_value.md)`&gt;(`[`execution::get_env`](get_env.md.nolink)`(`[`execution::schedule`](schedule.md.nolink)`(sch)))`の結果が`Sch`型に等しいこと
## 例
</code></pre></summary>