-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss.xml
More file actions
1123 lines (1031 loc) · 63.7 KB
/
Copy pathrss.xml
File metadata and controls
1123 lines (1031 loc) · 63.7 KB
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>2026-07-26T15:39:15.037793</updated>
<id>ebafb86d-174d-4093-bbc8-42da927e9fd1</id>
<entry>
<title>cpprefjp - C++日本語リファレンス -- スポンサー更新 #1667</title>
<link href="https://cpprefjp.github.io/index.html"/>
<id>793cfcbe1713520432cd29ba2e0e1a4ae198f929:index.md</id>
<updated>2026-07-26T15:05:17+09:00</updated>
<content type="html"><h1 itemprop="name"><span class="token">cpprefjp - C++日本語リファレンス</span></h1>
<div itemprop="articleBody"><p>本サイトcpprefjpは、プログラミング言語C++のリファレンスを提供するWebサイトです。</p>
<p>最新C++バージョンのリファレンスを提供していきます。</p>
<h2>運営方針</h2>
<p>本リファレンスサイトは、C++言語の最新のリファレンスを常に提供し続けることを目標にしています。</p>
<p>各クラス、関数にはそれぞれ1つ以上のサンプルコードを付けていく方針です。</p>
<p>本サイトでは、他サイトおよび規格書の直接的な翻訳ではなく、編集者の調査と考えに基づいた解説を提供していきます。</p>
<h2>HTMLデータのダウンロード</h2>
<ul>
<li><a href="https://github.com/cpprefjp/cpprefjp.github.io/archive/refs/heads/master.zip" target="_blank">cpprefjp.github.io-master.zip</a></li>
</ul>
<p>ローカルで閲覧できるHTMLを用意しています。</p>
<h2>スポンサーシップ</h2>
<ul>
<li><a href="https://opencollective.com/cpprefjp" target="_blank">cpprefjp - Open Collective</a></li>
</ul>
<p>このプロジェクトは、持続的な活動のため、ユーザーの方々からのご支援をお待ちしております。上記Open Collectiveのプロジェクトでスポンサーシップの募集をしております。</p>
<p>ご支援いただくユーザーの方々には、以下の特典があります。</p>
<ul>
<li>本ページ (cpprefjpサイトのトップページ) に1年間、金額順でロゴを表示させていただきます (金額が同じ場合は登録順)</li>
<li>シルバースポンサー以上の方は、<a href="https://github.com/cpprefjp/site" target="_blank">cpprefjp/site</a>リポジトリのissueとして、採用情報を投稿できます (一週間ほどで閉じます)</li>
</ul>
<p>ご支援いただいた資金は、貢献度に応じてコントリビューターに分配させていただきます。</p>
<p>また、スポンサーシップの入金方法として、Open Collectiveのほかに銀行振込も対応しております。</p>
<p>銀行振込に関して、またはそれ以外でスポンサーシップの相談に関しては、以下のメールアドレスにお問い合わせください。</p>
<ul>
<li>メールアドレス : <a href="mailto:cpprefjp_org@googlegroups.com">cpprefjp_org@googlegroups.com</a></li>
<li>宛名 : cpprefjp管理者<ul>
<li>代表として、主に高橋晶 (Akira Takahashi) がご対応させていただきます</li>
</ul>
</li>
</ul>
<h2>参加方法</h2>
<p>本サイトは、多くのユーザの手によって書かれています。</p>
<p>あなたがこの cpprefjp プロジェクトに参加したいのであれば、私達はそれをとても歓迎します。</p>
<p>cpprefjp プロジェクトに参加する方法は簡単です。</p>
<ol>
<li><a href="https://github.com/cpprefjp/site/issues?state=open" target="_blank">cpprefjp の Issues</a> にアクセスし、</li>
<li>あなたが手伝えそうな、まだ誰にもアサインされていないタスクを見つけ、</li>
<li>その Issue のコメントに「このタスクやります」と書く</li>
</ol>
<p>これだけです。</p>
<p>あとは、そのタスクを完了させて pull request を送れば、あなたも cpprefjp のコミッタになれます。</p>
<h2>編集者向けのさらなる情報</h2>
<p>本サイトは、GitHubのリポジトリ上で、Markdown形式でリファレンスを記載し、GitHub Pagesに自動反映するという形をとっています。本サイトのMarkdownソースは、以下のリポジトリにあります。</p>
<ul>
<li><a href="https://github.com/cpprefjp/site" target="_blank">https://github.com/cpprefjp/site</a></li>
</ul>
<p>上記リポジトリのREADMEに、コアメンバの一覧を記載してありますので、何かありましたらそのうちの誰か、もしくはリポジトリへのIssueという形でご相談ください。</p>
<p>本サイトの編集方法については、以下のドキュメントを参照してください。</p>
<ul>
<li><a href="start_editing.html">cpprefjpを編集するには</a></li>
</ul>
<p>本サイトのコンテンツを作成、編集するにあたり、仕様を熟知し、一人で完璧に正しい内容を書くことは要求しません。</p>
<p>たとえ間違ったことを記載した場合や、不安の残る内容を記載した場合でも、それに気づいた誰かが修正してくれます。</p>
<h2>その他参考情報</h2>
<p>以下のWebサイトから転載許可をいただいています。</p>
<p>翻訳や解説などで活用してください:</p>
<ul>
<li><a href="https://web.archive.org/web/20190112041213/http://episteme.wankuma.com/stlprog/index.html" target="_blank">Standard Template Library プログラミング on the Web</a></li>
</ul>
<h2>スポンサー</h2>
<p>cpprefjpプロジェクトは、以下の方々にスポンサーになっていただいております。</p>
<h3>ゴールドスポンサー</h3>
<p><div style="text-align: center"><a href="https://www.cocotone.jp" target="_blank"><img alt="cocotone様" src="static/image/sponsors/cocotone/cocotone.png" title="cocotone様" width="560" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://www.cube-soft.jp/" target="_blank"><img alt="CubeSoft様" src="https://raw.githubusercontent.com/cube-soft/cube.assets/master/home/banner/large.png" title="CubeSoft様" /></a></div>
</p>
<h3>シルバースポンサー</h3>
<p><div style="text-align: center"><a href="https://acerola-software.jp/" target="_blank"><img alt="Acerola Software様" src="static/image/sponsors/Acerola/as_logo.png" title="Acerola Software様" width="400" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://www.fixstars.com/" target="_blank"><img alt="Fixstars様" src="static/image/sponsors/Fixstars/fixstars-logo.png" title="Fixstars様" width="400" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://www.pegasys-inc.com/" target="_blank"><img alt="pegasys様" src="https://tmpgenc.pegasys-inc.com/images/pegasys_logo.png" title="pegasys様" width="320" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://vaporoid.com/sys/" target="_blank"><img alt="vaporoid様" src="static/image/sponsors/vaporoid/cpprefjp-400x150.png" title="vaporoid様" width="400" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://mkohana.github.io/" target="_blank"><img alt="M.Kohana様" src="static/image/sponsors/m_kohana/m_kohana.jpg" title="M.Kohana様" width="320" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://www.techarts.co.jp/" target="_blank"><img alt="有限会社テクニカルアーツ様" src="static/image/sponsors/technical_arts/TechnicalArtsLogo3.png" title="有限会社テクニカルアーツ様" width="400" /></a></div>
</p>
<p><ul><li>T.Kishu様</li></ul>
</p>
<h3>ブロンズスポンサー</h3>
<p><div style="text-align: center"><img alt="Azaika様" src="static/image/sponsors/Azaika/Azaika.jpg" title="Azaika様" width="256" /></div>
</p>
<p><ul><li>イシハラユウヤ様</li></ul>
</p>
<p><ul><li><a href="https://opencollective.com/meg_nakagami" target="_blank">Megumi Nakagami様</a></li></ul>
</p>
<p><div style="text-align: center"><a href="https://github.com/minachun/minachun" target="_blank"><img alt="minachun / J.Minami様" src="https://raw.githubusercontent.com/minachun/minachun/main/banner.png" title="minachun / J.Minami様" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://gravatar.com/overthestardust" target="_blank"><img alt="星くず彼方に様" src="static/image/sponsors/overthestardust/overthestardust.png" title="星くず彼方に様" width="256" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://github.com/zonuexe" target="_blank"><img alt="USAMI Kenta様" src="https://gravatar.com/userimage/33138763/7af48baae61cde116bd8d28a5158946e.jpeg?size=256" title="USAMI Kenta様" width="256" /></a></div>
</p>
<p><div style="text-align: center"><a href="https://github.com/soramimi" target="_blank"><img alt="soramimi様" src="https://www.soramimi.jp/avater.jpg" title="soramimi様" width="256" /></a></div>
</p>
<p><ul><li>Agate Pris様</li></ul>
</p>
<p><ul><li>tomoteru様</li></ul>
</p>
<p><div style="text-align: center"><a href="https://profile.bocchi-master.net/" target="_blank"><img alt="ぼっちマスター様" src="static/image/sponsors/bocchi-master/my-icon.png" title="ぼっちマスター様" width="320" /></a></div>
</p>
<p><ul><li>甲斐智丈様</li></ul>
</p>
<p><ul><li>shinichi hamada様</li></ul>
</p>
<p>スポンサーシップについては、以下のページを参照ください。</p>
<ul>
<li><a href="https://opencollective.com/cpprefjp" target="_blank">cpprefjp - Open Collective</a></li>
</ul>
<p>連絡先が不明なスポンサー様は、ロゴの表示が現在できておりません。Open Collectiveの問い合わせフォームから、表示するロゴ画像とリンク先URLについてご連絡いただきたいです。</p>
<h2>プライバシーポリシー</h2>
<p>本サイトは、サイトの改善のためにGoogleアナリティクスを使用しています。本サイトをご利用中のブラウザは、Googleに特定の情報を自動的に送信します。本サイトは、この分析のためにCookieを使用します。利用者は、本サイトを利用することで、この目的においてCookieを使用することを許可したものとみなします。</p>
<p>Googleによるデータ使用の詳細は、以下のURLで確認することができます。</p>
<p><a href="https://www.google.com/intl/ja/policies/privacy/partners/" target="_blank">https://www.google.com/intl/ja/policies/privacy/partners/</a></p>
<h2>ライセンスについて</h2>
<p>本サイトの情報は、<a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">クリエイティブ・コモンズ 表示 4.0 非移植 ライセンス(CC BY)</a>の下に提供しています。</p>
<p><img alt="" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></p>
<p>cpprefjpサイトのアイコン・ロゴ画像は、<a href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.ja" target="_blank">クリエイティブ・コモンズ 表示 - 非営利 - 改変禁止 4.0 国際 (CC BY-NC-ND 4.0)</a>の下に提供しています。</p>
<p>高解像度画像データ: <a href="https://github.com/cpprefjp/image/tree/master/cpprefjp/icon" target="_blank">cpprefjp/image</a></p>
<p><img alt="" src="https://licensebuttons.net/l/by-nc-nd/4.0/88x31.png" /></p></div></content>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>function_ref -- function_ref : GCCで動作確認</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref.html"/>
<id>5a102c9555cae0932faf646f234bb7da6e37ad8a:reference/functional/function_ref.md</id>
<updated>2026-07-26T14:33:13+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref.md b/reference/functional/function_ref.md
index 23d5f9636..f77eba736 100644
--- a/reference/functional/function_ref.md
+++ b/reference/functional/function_ref.md
@@ -105,7 +105,7 @@ int main()
### 処理系
- [Clang](/implementation.md#clang): ??
-- [GCC](/implementation.md#gcc): ??
+- [GCC](/implementation.md#gcc): 16.1 [mark verified]
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): ??
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>operator= -- function_ref : GCCで動作確認</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref/op_assign.html"/>
<id>5a102c9555cae0932faf646f234bb7da6e37ad8a:reference/functional/function_ref/op_assign.md</id>
<updated>2026-07-26T14:33:13+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref/op_assign.md b/reference/functional/function_ref/op_assign.md
index 17c06522b..284ae5679 100644
--- a/reference/functional/function_ref/op_assign.md
+++ b/reference/functional/function_ref/op_assign.md
@@ -66,7 +66,7 @@ int main()
### 処理系
- [Clang](/implementation.md#clang): ??
-- [GCC](/implementation.md#gcc): ??
+- [GCC](/implementation.md#gcc): 16.1 [mark verified]
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): ??
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>operator() -- function_ref : GCCで動作確認</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref/op_call.html"/>
<id>5a102c9555cae0932faf646f234bb7da6e37ad8a:reference/functional/function_ref/op_call.md</id>
<updated>2026-07-26T14:33:13+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref/op_call.md b/reference/functional/function_ref/op_call.md
index 7384477db..e0d500feb 100644
--- a/reference/functional/function_ref/op_call.md
+++ b/reference/functional/function_ref/op_call.md
@@ -60,7 +60,7 @@ int main()
### 処理系
- [Clang](/implementation.md#clang): ??
-- [GCC](/implementation.md#gcc): ??
+- [GCC](/implementation.md#gcc): 16.1 [mark verified]
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): ??
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>コンストラクタ -- function_ref : GCCで動作確認</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref/op_constructor.html"/>
<id>5a102c9555cae0932faf646f234bb7da6e37ad8a:reference/functional/function_ref/op_constructor.md</id>
<updated>2026-07-26T14:33:13+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref/op_constructor.md b/reference/functional/function_ref/op_constructor.md
index 1f17f60ea..0e741337a 100644
--- a/reference/functional/function_ref/op_constructor.md
+++ b/reference/functional/function_ref/op_constructor.md
@@ -163,7 +163,7 @@ int main()
### 処理系
- [Clang](/implementation.md#clang): ??
-- [GCC](/implementation.md#gcc): ??
+- [GCC](/implementation.md#gcc): 16.1 [mark verified]
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): ??
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>推論補助 -- function_ref : GCCで動作確認</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref/op_deduction_guide.html"/>
<id>5a102c9555cae0932faf646f234bb7da6e37ad8a:reference/functional/function_ref/op_deduction_guide.md</id>
<updated>2026-07-26T14:33:13+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref/op_deduction_guide.md b/reference/functional/function_ref/op_deduction_guide.md
index 8c0e30950..876ad7081 100644
--- a/reference/functional/function_ref/op_deduction_guide.md
+++ b/reference/functional/function_ref/op_deduction_guide.md
@@ -83,7 +83,7 @@ int main()
### 処理系
- [Clang](/implementation.md#clang): ??
-- [GCC](/implementation.md#gcc): ??
+- [GCC](/implementation.md#gcc): 16.1 [mark verified]
- [ICC](/implementation.md#icc): ??
- [Visual C++](/implementation.md#visual_cpp): ??
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>function_ref -- constant_arg_tが残ってしまっていたので削除し、function_refの該当箇所を更新</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref.html"/>
<id>93df68b70d6d4e455ffb5666d1ca0b98b75331f6:reference/functional/function_ref.md</id>
<updated>2026-07-26T14:33:00+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref.md b/reference/functional/function_ref.md
index 756c1b93f..23d5f9636 100644
--- a/reference/functional/function_ref.md
+++ b/reference/functional/function_ref.md
@@ -33,7 +33,7 @@ namespace std {
- ポインタ2個のオブジェクトサイズで実装可能。
- 構築時に必ず呼び出し対象を指定する必要がある。デフォルト構築不可。
- `operator bool`を提供しない。
-- メンバ関数・メンバ変数を参照する場合は、[`std::constant_arg`](/reference/utility/constant_arg_t.md)タグを利用する。
+- メンバ関数・メンバ変数を参照する場合は、[`std::constant_wrapper`](/reference/utility/constant_wrapper.md)(変数テンプレート[`std::cw`](/reference/utility/constant_wrapper.md))を利用する。
- 対象オブジェクトの束縛タイミングは、構築時または呼び出し時のいずれもサポートする。
- ダングリング参照を避けるため、左辺値(lvalue)のみを取り扱う。
@@ -86,11 +86,11 @@ int main()
// オブジェクト束縛済みメンバ関数を指定
Calc obj{ 3 };
- std::cout &lt;&lt; hof({std::constant_arg&lt;&amp;Calc::eval&gt;, obj}) &lt;&lt; std::endl;
+ std::cout &lt;&lt; hof({std::cw&lt;&amp;Calc::eval&gt;, obj}) &lt;&lt; std::endl;
}
```
* std::function_ref[color ff0000]
-* std::constant_arg[link /reference/utility/constant_arg_t.md]
+* std::cw[link /reference/utility/constant_wrapper.md]
#### 出力
```
@@ -119,5 +119,8 @@ int main()
## 参照
- [P0792R14 `function_ref`: a type-erased callable reference](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0792r14.html)
- [P3774R1 Rename `std::nontype`, and make it broadly useful](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3774r1.html)
+ - `std::nontype`を`std::constant_arg`に改名した。この設計はのちにP3948R1で置き換えられた
+- [P3948R1 `constant_wrapper` is the only tool needed for passing constant expressions via function arguments](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3948r1.pdf)
+ - 定数引数の受け渡しに用いるタグを`constant_arg`から`constant_wrapper`(変数テンプレート`std::cw`)へ置き換えた。これによりメンバ関数・メンバ変数の参照や第1引数の束縛は`std::cw`で指定する
- [P3961R1 Less double indirection in `function_ref` (RU-220)](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3961r1.html)
- 別の`function_ref`から構築する際の二重の間接呼び出しを回避するよう、コンストラクタと代入演算子の仕様を変更した
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>operator= -- constant_arg_tが残ってしまっていたので削除し、function_refの該当箇所を更新</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref/op_assign.html"/>
<id>93df68b70d6d4e455ffb5666d1ca0b98b75331f6:reference/functional/function_ref/op_assign.md</id>
<updated>2026-07-26T14:33:00+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref/op_assign.md b/reference/functional/function_ref/op_assign.md
index 57250a84e..17c06522b 100644
--- a/reference/functional/function_ref/op_assign.md
+++ b/reference/functional/function_ref/op_assign.md
@@ -20,7 +20,7 @@ template&lt;class T&gt; function_ref&amp; operator=(T) = delete; // (2)
- `T`が`function_ref`と同一型ではなく、かつ
- 説明専用の`is-convertible-from-specialization&lt;T&gt;`([コンストラクタ](op_constructor.md)を参照)が`false`であり、かつ
- [`is_pointer_v`](/reference/type_traits/is_pointer.md)`&lt;T&gt;`が`false`であり、かつ
- - `T`が[`constant_arg_t`](/reference/utility/constant_arg_t.md)の特殊化でないこと
+ - `T`が[`constant_wrapper`](/reference/utility/constant_wrapper.md)の特殊化でないこと
## 効果
@@ -74,5 +74,8 @@ int main()
## 参照
- [P0792R14 `function_ref`: a type-erased callable reference](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0792r14.html)
- [P3774R1 Rename `std::nontype`, and make it broadly useful](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3774r1.html)
+ - `std::nontype`を`std::constant_arg`に改名した。この設計はのちにP3948R1で置き換えられた
+- [P3948R1 `constant_wrapper` is the only tool needed for passing constant expressions via function arguments](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3948r1.pdf)
+ - delete宣言される代入演算子(2)の制約で、除外対象を`constant_arg_t`の特殊化から`constant_wrapper`の特殊化へ置き換えた
- [P3961R1 Less double indirection in `function_ref` (RU-220)](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3961r1.html)
- delete宣言される代入演算子(2)の制約に、説明専用の`is-convertible-from-specialization`の条件を追加した
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>コンストラクタ -- constant_arg_tが残ってしまっていたので削除し、function_refの該当箇所を更新</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref/op_constructor.html"/>
<id>93df68b70d6d4e455ffb5666d1ca0b98b75331f6:reference/functional/function_ref/op_constructor.md</id>
<updated>2026-07-26T14:33:00+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref/op_constructor.md b/reference/functional/function_ref/op_constructor.md
index c7ffd3349..1f17f60ea 100644
--- a/reference/functional/function_ref/op_constructor.md
+++ b/reference/functional/function_ref/op_constructor.md
@@ -11,16 +11,16 @@ template&lt;class F&gt; function_ref(F* f) noexcept; // (1)
template&lt;class F&gt;
constexpr function_ref(F&amp;&amp; f) noexcept; // (2)
-template&lt;auto f&gt;
-constexpr function_ref(constant_arg_t&lt;f&gt;) noexcept; // (3)
-template&lt;auto f, class U&gt;
-constexpr function_ref(constant_arg_t&lt;f&gt;, U&amp;&amp; obj) noexcept; // (4)
-template&lt;auto f, class T&gt;
-constexpr function_ref(constant_arg_t&lt;f&gt;, /*cv*/ T* obj) noexcept; // (5)
+template&lt;auto c, class F&gt;
+constexpr function_ref(constant_wrapper&lt;c, F&gt; f) noexcept; // (3)
+template&lt;auto c, class F, class U&gt;
+constexpr function_ref(constant_wrapper&lt;c, F&gt; f, U&amp;&amp; obj) noexcept; // (4)
+template&lt;auto c, class F, class T&gt;
+constexpr function_ref(constant_wrapper&lt;c, F&gt; f, /*cv*/ T* obj) noexcept; // (5)
constexpr function_ref(const function_ref&amp;) noexcept = default; // (6)
```
-* constant_arg_t[link /reference/utility/constant_arg_t.md]
+* constant_wrapper[link /reference/utility/constant_wrapper.md]
## 概要
`function_ref`オブジェクトを構築する。
@@ -51,21 +51,21 @@ is_convertible_v&lt;int /*cv*/&amp;, int /*cv2*/&amp;&gt;
- [`remove_cvref_t`](/reference/type_traits/remove_cvref.md)`&lt;F&gt;`が`function_ref`と同一型ではなく、かつ
- [`is_member_pointer_v`](/reference/type_traits/is_member_pointer.md)`&lt;T&gt;`が`false`であり、かつ
- `is-invocable-using&lt;/*cv*/ T&amp;&gt;`が`true`であること
-- (3) : `F`を`decltype(f)`としたとき
- - `is-invocable-using&lt;F&gt;`が`true`であること
-- (4) : `T`を[`remove_reference_t`](/reference/type_traits/remove_reference.md)`&lt;F&gt;`、`F`を`decltype(f)`としたとき
+- (3) : `is-invocable-using&lt;const F&amp;&gt;`が`true`であること
+- (4) : `T`を[`remove_reference_t`](/reference/type_traits/remove_reference.md)`&lt;U&gt;`としたとき
- [`is_rvalue_reference_v`](/reference/type_traits/is_rvalue_reference.md)`&lt;U&amp;&amp;&gt;`が`false`であり、かつ
- - `is-invocable-using&lt;F, /*cv*/ T&amp;&gt;`が`true`であること
-- (5) : `F`を`decltype(f)`としたとき
- - `is-invocable-using&lt;F, /*cv*/ T*&gt;`が`true`であること
+ - `is-invocable-using&lt;const F&amp;, /*cv*/ T&amp;&gt;`が`true`であること
+- (5) : `is-invocable-using&lt;const F&amp;, /*cv*/ T*&gt;`が`true`であること
## 適格要件
-- (3), (4), (5) : `F`を`decltype(f)`としたとき、[`is_pointer`](/reference/type_traits/is_pointer.md)`&lt;F&gt; ||` [`is_member_pointer`](/reference/type_traits/is_member_pointer.md)`&lt;F&gt;`が`true`ならば、`f`がヌルポインタでないこと。
+- (3), (4), (5) : [`is_pointer_v`](/reference/type_traits/is_pointer.md)`&lt;F&gt; ||` [`is_member_pointer_v`](/reference/type_traits/is_member_pointer.md)`&lt;F&gt;`が`true`ならば、`f.value`がヌルポインタでないこと。
+- (3) : `ArgTypes`が空のパックではなく、`remove_cvref_t&lt;ArgTypes&gt;...`のすべての型が定数として扱える([`constant_wrapper`](/reference/utility/constant_wrapper.md)の説明用コンセプト`constexpr-param`のモデルである)場合、`constant_wrapper&lt;/*INVOKE*/(f.value, remove_cvref_t&lt;ArgTypes&gt;::value...)&gt;`が妥当な型ではないこと。
## 事前条件
- (1) : `f`がヌルポインタでないこと。
+- (5) : [`is_member_pointer_v`](/reference/type_traits/is_member_pointer.md)`&lt;F&gt;`が`true`のとき、`obj`がヌルポインタでないこと。
## 効果
@@ -77,11 +77,11 @@ is_convertible_v&lt;int /*cv*/&amp;, int /*cv2*/&amp;&gt;
- [関数呼び出し`thunk(bound-entity, call-args...)`](op_call.md)は[`invoke_r`](/reference/functional/invoke_r.md)`&lt;R&gt;(static_cast&lt;/*cv*/ T&amp;&gt;(f), call-args...)`と等価。
- `is-convertible-from-specialization&lt;`[`remove_cv_t`](/reference/type_traits/remove_cv.md)`&lt;T&gt;&gt;`が`true`の場合(`f`が互換するシグニチャ・CV修飾をもつ`function_ref`の特殊化であるとき)、`bound-entity`を`f`の`bound-entity`の値で、`thunk-ptr`を`f`の`thunk-ptr`の値で初期化する。これにより、`function_ref`から別の`function_ref`を構築する際に、本来不要な二重の間接呼び出しが回避される。
- (3) : `bound-entity`を未規定オブジェクトへのポインタまたはヌルポインタで、`thunk-ptr`を説明専用の関数`thunk`へのアドレスで初期化する。
- - [関数呼び出し`thunk(bound-entity, call-args...)`](op_call.md)は[`invoke_r`](/reference/functional/invoke_r.md)`&lt;R&gt;(f, call-args...)`と等価。
+ - [関数呼び出し`thunk(bound-entity, call-args...)`](op_call.md)は[`invoke_r`](/reference/functional/invoke_r.md)`&lt;R&gt;(f.value, call-args...)`と等価。
- (4) : `bound-entity`を[`addressof`](/reference/memory/addressof.md)`(obj)`で、`thunk-ptr`を説明専用の関数`thunk`へのアドレスで初期化する。
- - [関数呼び出し`thunk(bound-entity, call-args...)`](op_call.md)は[`invoke_r`](/reference/functional/invoke_r.md)`&lt;R&gt;(f, static_cast&lt;/*cv*/ T&amp;&gt;(obj), call-args...)`と等価。
+ - [関数呼び出し`thunk(bound-entity, call-args...)`](op_call.md)は[`invoke_r`](/reference/functional/invoke_r.md)`&lt;R&gt;(f.value, static_cast&lt;/*cv*/ T&amp;&gt;(obj), call-args...)`と等価。
- (5) : `bound-entity`を`obj`で、`thunk-ptr`を説明専用の関数`thunk`へのアドレスで初期化する。
- - [関数呼び出し`thunk(bound-entity, call-args...)`](op_call.md)は[`invoke_r`](/reference/functional/invoke_r.md)`&lt;R&gt;(f, obj, call-args...)`と等価。
+ - [関数呼び出し`thunk(bound-entity, call-args...)`](op_call.md)は[`invoke_r`](/reference/functional/invoke_r.md)`&lt;R&gt;(f.value, obj, call-args...)`と等価。
- (6) : コピーコンストラクタ。
@@ -124,16 +124,16 @@ int main()
}
// (3) メンバ関数
{
- std::function_ref&lt;int(X&amp;, int)&gt; f3 = std::constant_arg&lt;&amp;X::ident&gt;;
+ std::function_ref&lt;int(X&amp;, int)&gt; f3 = std::cw&lt;&amp;X::ident_func&gt;;
X obj;
std::cout &lt;&lt; &#34;(3) : &#34; &lt;&lt; f3(obj, 3) &lt;&lt; std::endl;
}
// (4), (5) メンバ関数+オブジェクト束縛
{
X obj;
- std::function_ref&lt;int(int)&gt; f4{std::constant_arg&lt;&amp;X::ident&gt;, obj};
+ std::function_ref&lt;int(int)&gt; f4{std::cw&lt;&amp;X::ident_func&gt;, obj};
std::cout &lt;&lt; &#34;(4) : &#34; &lt;&lt; f4(4) &lt;&lt; std::endl;
- std::function_ref&lt;int(int)&gt; f5{std::constant_arg&lt;&amp;X::ident&gt;, &amp;obj};
+ std::function_ref&lt;int(int)&gt; f5{std::cw&lt;&amp;X::ident_func&gt;, &amp;obj};
std::cout &lt;&lt; &#34;(5) : &#34; &lt;&lt; f5(5) &lt;&lt; std::endl;
}
// (6) コピーコンストラクタ
@@ -144,7 +144,7 @@ int main()
}
}
```
-* std::constant_arg[link /reference/utility/constant_arg_t.md]
+* std::cw[link /reference/utility/constant_wrapper.md]
### 出力
```
@@ -171,5 +171,10 @@ int main()
## 参照
- [P0792R14 `function_ref`: a type-erased callable reference](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0792r14.html)
- [P3774R1 Rename `std::nontype`, and make it broadly useful](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3774r1.html)
+ - `std::nontype`を`std::constant_arg`に改名した。この設計はのちにP3948R1で置き換えられた
+- [P3948R1 `constant_wrapper` is the only tool needed for passing constant expressions via function arguments](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3948r1.pdf)
+ - (3), (4), (5)のコンストラクタが受け取るタグを`constant_arg_t`から`constant_wrapper`(変数テンプレート`std::cw`)へ置き換えた
- [P3961R1 Less double indirection in `function_ref` (RU-220)](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3961r1.html)
- 別の`function_ref`から構築する際の二重の間接呼び出しを回避するため、説明専用の`is-convertible-from-specialization`を追加し、(2)のコンストラクタの効果を変更した
+- [LWG Issue 4256 Incorrect constraints for `function_ref` constructors from `nontype_t`](https://cplusplus.github.io/LWG/issue4256)
+ - (3), (4), (5)のコンストラクタの制約が修正された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>推論補助 -- constant_arg_tが残ってしまっていたので削除し、function_refの該当箇所を更新</title>
<link href="https://cpprefjp.github.io/reference/functional/function_ref/op_deduction_guide.html"/>
<id>93df68b70d6d4e455ffb5666d1ca0b98b75331f6:reference/functional/function_ref/op_deduction_guide.md</id>
<updated>2026-07-26T14:33:00+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/functional/function_ref/op_deduction_guide.md b/reference/functional/function_ref/op_deduction_guide.md
index 605b74826..8c0e30950 100644
--- a/reference/functional/function_ref/op_deduction_guide.md
+++ b/reference/functional/function_ref/op_deduction_guide.md
@@ -9,14 +9,14 @@ namespace std {
template&lt;class F&gt;
function_ref(F*) -&gt; function_ref&lt;F&gt;; // (1)
- template&lt;auto f&gt;
- function_ref(constant_arg_t&lt;f&gt;) -&gt; function_ref&lt;see below&gt;; // (2)
+ template&lt;auto c, class F0&gt;
+ function_ref(constant_wrapper&lt;c, F0&gt;) -&gt; function_ref&lt;see below&gt;; // (2)
- template&lt;auto f, class T&gt;
- function_ref(constant_arg_t&lt;f&gt;, T&amp;&amp;) -&gt; function_ref&lt;see below&gt;; // (3)
+ template&lt;auto c, class F, class T&gt;
+ function_ref(constant_wrapper&lt;c, F&gt;, T&amp;&amp;) -&gt; function_ref&lt;see below&gt;; // (3)
}
```
-* constant_arg_t[link /reference/utility/constant_arg_t.md]
+* constant_wrapper[link /reference/utility/constant_wrapper.md]
## 概要
@@ -25,17 +25,17 @@ namespace std {
## テンプレートパラメータ制約
- (1) : [`is_function`](/reference/type_traits/is_function.md)`&lt;F&gt;`が`true`であること。
-- (2) : `F`を[`remove_pointer_t`](/reference/type_traits/remove_pointer.md)`&lt;decltype(f)&gt;`としたとき、[`is_function`](/reference/type_traits/is_function.md)`&lt;F&gt;`が`true`であること。
-- (3) : `F`を`decltype(f)`としたとき
+- (2) : `F`を[`remove_pointer_t`](/reference/type_traits/remove_pointer.md)`&lt;F0&gt;`としたとき、[`is_function`](/reference/type_traits/is_function.md)`&lt;F&gt;`が`true`であること。
+- (3) : 次のいずれかであること
- 型`G`に対して`F`が`R(G::*)(A...) /*cv*/ &amp; noexcept(E)`の形式(参照修飾子`&amp;`は省略可、`E`は`bool`値)、または
- 型`G`とオブジェクト型`M`に対して`F`が`M G::*`の形式、または
- 型`G`に対して`F`が`R(*)(G, A...) noexcept(E)`の形式(`E`は`bool`値)であること
## 備考
-- (2) : `F`を[`remove_pointer_t`](/reference/type_traits/remove_pointer.md)`&lt;decltype(f)&gt;`としたとき、型`function_ref&lt;F&gt;`に推論される。
+- (2) : `F`を[`remove_pointer_t`](/reference/type_traits/remove_pointer.md)`&lt;F0&gt;`としたとき、型`function_ref&lt;F&gt;`に推論される。
- (3) : 型`function_ref&lt;R(A...) noexcept(E)&gt;`に推論される。
- - `F`が`M G::*`の形式のとき、`R`は[`invoke_result_t`](/reference/type_traits/invoke_result.md)`&lt;F, T&amp;&gt;`、`A...`は空のパック、`E`は`false`とする。
+ - `F`が`M G::*`の形式のとき、`R`は[`invoke_result_t`](/reference/type_traits/invoke_result.md)`&lt;F, T&amp;&gt;`、`A...`は空のパック、`E`は`true`とする。
- それ以外の形式のときは、テンプレートパラメータ制約の説明を参照。
@@ -58,19 +58,19 @@ int main()
std::function_ref f1{&amp;ident};
// (2) 関数ポインタ/NTTP
- std::function_ref f2{std::constant_arg&lt;&amp;ident&gt;};
+ std::function_ref f2{std::cw&lt;&amp;ident&gt;};
// (3a) メンバ関数+オブジェクト束縛
X obj{42};
- std::function_ref f3a{std::constant_arg&lt;&amp;X::mf&gt;, obj};
+ std::function_ref f3a{std::cw&lt;&amp;X::mf&gt;, obj};
// (3b) メンバ変数+オブジェクト束縛
- std::function_ref f3b{std::constant_arg&lt;&amp;X::data&gt;, obj};
+ std::function_ref f3b{std::cw&lt;&amp;X::data&gt;, obj};
// (3c) 関数ポインタ+第1引数束縛
- std::function_ref f3c{std::constant_arg&lt;&amp;fun&gt;, obj};
+ std::function_ref f3c{std::cw&lt;&amp;fun&gt;, obj};
}
```
* std::function_ref[color ff0000]
-* std::constant_arg[link /reference/utility/constant_arg_t.md]
+* std::cw[link /reference/utility/constant_wrapper.md]
### 出力
```
@@ -91,3 +91,8 @@ int main()
## 参照
- [P0792R14 `function_ref`: a type-erased callable reference](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p0792r14.html)
- [P3774R1 Rename `std::nontype`, and make it broadly useful](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p3774r1.html)
+ - `std::nontype`を`std::constant_arg`に改名した。この設計はのちにP3948R1で置き換えられた
+- [P3948R1 `constant_wrapper` is the only tool needed for passing constant expressions via function arguments](https://open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3948r1.pdf)
+ - (2), (3)の推論補助が受け取るタグを`constant_arg_t`から`constant_wrapper`(変数テンプレート`std::cw`)へ置き換えた
+- [LWG Issue 4425 CTAD `function_ref` of data member pointer should produce noexcept signature](https://cplusplus.github.io/LWG/issue4425)
+ - (3)でメンバ変数ポインタを渡した場合の推論結果が`noexcept`シグニチャ(`E`が`true`)になるよう修正された
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>utility -- constant_arg_tが残ってしまっていたので削除し、function_refの該当箇所を更新</title>
<link href="https://cpprefjp.github.io/reference/utility.html"/>
<id>93df68b70d6d4e455ffb5666d1ca0b98b75331f6:reference/utility.md</id>
<updated>2026-07-26T14:33:00+09:00</updated>
<content type="html"><div class="header">&lt;utility&gt;</div><h1 itemprop="name"><span class="token">utility</span></h1>
<div itemprop="articleBody"><p><code>&lt;utility&gt;</code>ヘッダでは、その他のライブラリの至る所で使用される、幾つかの基本的な関数やクラステンプレートを定義する。</p>
<p>このヘッダでは、以下の標準ヘッダをインクルードする:</p>
<ul>
<li><code><a href="initializer_list.html">&lt;initializer_list&gt;</a></code> (C++11)</li>
<li><code><a href="compare.html">&lt;compare&gt;</a></code> (C++20)</li>
</ul>
<h2>演算子定義</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/rel_ops.html">rel_ops</a></code></td>
<td>関係演算子(namespace)</td>
<td>C++20から非推奨</td>
</tr>
</tbody>
</table>
<h2>値の入れ替え</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/swap.html">swap</a></code></td>
<td>二つのオブジェクトの値を交換する(function template)</td>
<td>C++11</td>
</tr>
<tr>
<td><code><a href="utility/exchange.html">exchange</a></code></td>
<td>値を書き換え、書き換え前の値を返す(function template)</td>
<td>C++14</td>
</tr>
</tbody>
</table>
<h2>転送と移動</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/forward.html">forward</a></code></td>
<td>関数テンプレートの引数を転送する(function template)</td>
<td>C++11</td>
</tr>
<tr>
<td><code><a href="utility/forward_like.html">forward_like</a></code></td>
<td>第一テンプレート引数の<code>const</code>性と参照修飾で引数を転送する(function template)</td>
<td>C++23</td>
</tr>
<tr>
<td><code><a href="utility/move.html">move</a></code></td>
<td>左辺値を右辺値にキャストする(function template)</td>
<td>C++11</td>
</tr>
<tr>
<td><code><a href="utility/move_if_noexcept.html">move_if_noexcept</a></code></td>
<td>例外を投げないオブジェクトをムーブする(function template)</td>
<td>C++11</td>
</tr>
</tbody>
</table>
<h2>型の修飾</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/as_const.html">as_const</a></code></td>
<td>左辺値参照を<code>const</code>左辺値参照にする (function template)</td>
<td>C++17</td>
</tr>
</tbody>
</table>
<h2>型の値</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/declval.html">declval</a></code></td>
<td>指定された型の値を得る(function template)</td>
<td>C++11</td>
</tr>
</tbody>
</table>
<h2>整数比較</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/cmp_equal.html">cmp_equal</a></code></td>
<td>等値比較 (function template)</td>
<td>C++20</td>
</tr>
<tr>
<td><code><a href="utility/cmp_not_equal.html">cmp_not_equal</a></code></td>
<td>非等値比較 (function template)</td>
<td>C++20</td>
</tr>
<tr>
<td><code><a href="utility/cmp_less.html">cmp_less</a></code></td>
<td>左辺が右辺より小さいかを比較 (function template)</td>
<td>C++20</td>
</tr>
<tr>
<td><code><a href="utility/cmp_less_equal.html">cmp_less_equal</a></code></td>
<td>左辺が右辺以下かを比較 (function template)</td>
<td>C++20</td>
</tr>
<tr>
<td><code><a href="utility/cmp_greater.html">cmp_greater</a></code></td>
<td>左辺が右辺より大きいかを比較 (function template)</td>
<td>C++20</td>
</tr>
<tr>
<td><code><a href="utility/cmp_greater_equal.html">cmp_greater_equal</a></code></td>
<td>左辺が右辺以上かを比較 (function template)</td>
<td>C++20</td>
</tr>
<tr>
<td><code><a href="utility/in_range.html">in_range</a></code></td>
<td>値が型のとりうる範囲内か判定する (function template)</td>
<td>C++20</td>
</tr>
</tbody>
</table>
<h2>列挙型</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/to_underlying.html">to_underlying</a></code></td>
<td>列挙値を基底型に変換する (function template)</td>
<td>C++23</td>
</tr>
</tbody>
</table>
<h2>未定義動作</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/unreachable.html">unreachable</a></code></td>
<td>コードパス不到達を表明する (function)</td>
<td>C++23</td>
</tr>
<tr>
<td><code><a href="utility/observable_checkpoint.html">observable_checkpoint</a></code></td>
<td>観測可能チェックポイントを設置する (function)</td>
<td>C++26</td>
</tr>
</tbody>
</table>
<h2>組</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/pair.html">pair</a></code></td>
<td>異なる型の二つの値の組(class template)</td>
<td></td>
</tr>
<tr>
<td><code><a href="utility/make_pair.html">make_pair</a></code></td>
<td><code>pair</code>を構築するヘルパ関数(function template)</td>
<td></td>
</tr>
<tr>
<td><code><a href="utility/piecewise_construct_t.html">piecewise_construct_t</a></code></td>
<td><code>pair</code>や<code>tuple</code>の要素型のコンストラクタ引数を直接受け取って構築するためのタグ型(class)</td>
<td>C++11</td>
</tr>
<tr>
<td><code><a href="utility/piecewise_construct_t.html">piecewise_construct</a></code></td>
<td><code>pair</code>や<code>tuple</code>の要素型のコンストラクタ引数を直接受け取って構築するためのタグ値(constant variable)</td>
<td>C++11</td>
</tr>
<tr>
<td><code>tuple</code></td>
<td><code>tuple</code>型の先行宣言(class template)</td>
<td>C++11</td>
</tr>
</tbody>
</table>
<h2>直接構築</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/in_place_t.html">in_place_t</a></code></td>
<td>要素型のコンストラクタ引数を直接受け取って構築するためのタグ型 (class)</td>
<td>C++17</td>
</tr>
<tr>
<td><code><a href="utility/in_place_t.html">in_place</a></code></td>
<td>要素型のコンストラクタ引数を直接受け取って構築するためのタグ値 (constant variable)</td>
<td>C++17</td>
</tr>
<tr>
<td><code><a href="utility/in_place_type_t.html">in_place_type_t</a></code></td>
<td>指定した要素型のコンストラクタ引数を直接受け取って構築するためのタグ型 (class)</td>
<td>C++17</td>
</tr>
<tr>
<td><code><a href="utility/in_place_type_t.html">in_place_type</a></code></td>
<td>指定した要素型のコンストラクタ引数を直接受け取って構築するためのタグ値 (constant variable)</td>
<td>C++17</td>
</tr>
<tr>
<td><code><a href="utility/in_place_index_t.html">in_place_index_t</a></code></td>
<td>指定位置にある要素型のコンストラクタ引数を直接受け取って構築するためのタグ型 (class)</td>
<td>C++17</td>
</tr>
<tr>
<td><code><a href="utility/in_place_index_t.html">in_place_index</a></code></td>
<td>指定位置にある要素型のコンストラクタ引数を直接受け取って構築するためのタグ値 (constant variable)</td>
<td>C++17</td>
</tr>
</tbody>
</table>
<h2>定数のラッパー</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/constant_wrapper.html">constant_wrapper</a></code></td>
<td>定数を型として包むラッパー (class template)</td>
<td>C++26</td>
</tr>
<tr>
<td><code><a href="utility/constant_wrapper.html">cw</a></code></td>
<td><code>constant_wrapper</code>を簡潔に生成する変数テンプレート (variable template)</td>
<td>C++26</td>
</tr>
</tbody>
</table>
<h2>コンパイル時の整数シーケンス</h2>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>名前</th>
<th>説明</th>
<th>対応バージョン</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><a href="utility/integer_sequence.html">integer_sequence</a></code></td>
<td>任意の整数型のシーケンス(class template)</td>
<td>C++14</td>
</tr>
<tr>
<td><code><a href="utility/make_integer_sequence.html">make_integer_sequence</a></code></td>
<td>要素数を指定して、0から始まる整数シーケンスを生成する(type-alias)</td>
<td>C++14</td>
</tr>
<tr>
<td><code><a href="utility/index_sequence.html">index_sequence</a></code></td>
<td><code>size_t</code>型の整数シーケンス(type-alias)</td>
<td>C++14</td>
</tr>
<tr>
<td><code><a href="utility/make_index_sequence.html">make_index_sequence</a></code></td>
<td>要素数を指定して、0から始まる<code>size_t</code>型整数シーケンスを生成する(type-alias)</td>
<td>C++14</td>
</tr>
<tr>
<td><code><a href="utility/index_sequence_for.html">index_sequence_for</a></code></td>
<td>型のシーケンスを、0から始まる<code>size_t</code>型整数シーケンスに変換する(type-alias)</td>
<td>C++14</td>
</tr>
</tbody>
</table>
<h2>参照</h2>
<ul>
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2051r0.html" target="_blank">P2051R0 C++ Standard Library Issues to be moved in Prague</a></li>
</ul></div></content>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>constant_arg_t.md -- constant_arg_tが残ってしまっていたので削除し、function_refの該当箇所を更新</title>
<link href="https://cpprefjp.github.io/reference/utility/constant_arg_t.html"/>
<id>93df68b70d6d4e455ffb5666d1ca0b98b75331f6:reference/utility/constant_arg_t.md</id>
<updated>2026-07-26T14:33:00+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/utility/constant_arg_t.md b/reference/utility/constant_arg_t.md
deleted file mode 100644
index 56ca51d6c..000000000
--- a/reference/utility/constant_arg_t.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# constant_arg_t
-* utility[meta header]
-* std[meta namespace]
-* class template[meta id-type]
-* cpp26[meta cpp]
-
-```cpp
-namespace std {
- template &lt;auto V&gt;
- struct constant_arg_t {
- explicit constant_arg_t() = default;
- };
-
- template &lt;auto V&gt; constexpr constant_arg_t&lt;V&gt; constant_arg{};
-}
-```
-
-## 概要
-`constant_arg_t`クラスは、オーバーロードのための空クラスである。
-
-標準ライブラリの特定機能において、定数引数をテンプレートパラメータとして受け取って構築するための関数オーバーロードを定義するためにある。
-
-
-## 備考
-デフォルトコンストラクタに`explicit`が付いているのは、`constant_arg_t&lt;F&gt; x = {};`のように`=`付きの波カッコ初期化を禁止するためである。ユーザーは通常、`constant_arg_t`型の変数テンプレートとして事前定義されている`constant_arg`を使用すればよいので、問題にはならない。
-
-
-## 例
-```cpp example
-#include &lt;functional&gt;
-#include &lt;print&gt;
-#include &lt;utility&gt;
-
-void call(std::function_ref&lt;void()&gt; fn)
-{
- fn();
-}
-
-struct Dog {
- void cry() { std::println(&#34;Bow-wow&#34;); }
-};
-
-int main()
-{
- Dog dog;
- call({std::constant_arg&lt;&amp;Dog::cry&gt;, dog});
-}
-```
-* std::constant_arg[color ff0000]
-* std::function_ref[link /reference/functional/function_ref.md]