-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss.xml
More file actions
2180 lines (2130 loc) · 134 KB
/
Copy pathrss.xml
File metadata and controls
2180 lines (2130 loc) · 134 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-09-08T18:01:14.546429</updated>
<id>c18d8ae5-cd01-4746-bb5a-f7f76974dec8</id>
<entry>
<title>is_within_lifetime -- type_traits/is_within_lifetime: P3450R1対応(#1409)</title>
<link href="https://cpprefjp.github.io/reference/type_traits/is_within_lifetime.html"/>
<id>21f742cd237ab95e321c6f256459f11a85fcedf8:reference/type_traits/is_within_lifetime.md</id>
<updated>2026-09-09T00:45:54+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/type_traits/is_within_lifetime.md b/reference/type_traits/is_within_lifetime.md
index f1dc4a259..ea38c8794 100644
--- a/reference/type_traits/is_within_lifetime.md
+++ b/reference/type_traits/is_within_lifetime.md
@@ -6,7 +6,7 @@
```cpp
namespace std {
- template&lt;class T&gt;
+ template&lt;class U=void, class T&gt;
consteval bool is_within_lifetime(const T* p) noexcept; // (1) C++26
}
```
@@ -36,8 +36,12 @@ struct OptBool {
この関数を使用することで、コンパイル時に指定メンバがアクティブかを判定することができる。
+## 適格要件
+`static_cast&lt;const volatile U*&gt;(p)`が適格であること。
+
+
## 戻り値
-`p`が有効期間内にあるオブジェクトへのポインタであれば`true`、そうでなければ`false`を返す。
+`p`が有効期間内にあるオブジェクトへのポインタかつ`static_cast&lt;const volatile U*&gt;(p)`が定数部分式であれば`true`、そうでなければ`false`を返す。
## 備考
@@ -92,3 +96,4 @@ int main() {
## 参照
- [P2641R4 Checking if a `union` alternative is active](http://open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2641r4.html)
+- [P3450R1 Extend `std::is_within_lifetime`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p3450r1.html)
</code></pre></summary>
<author>
<name>yoh</name>
<email>kawasaki.liamg@gmail.com</email>
</author>
</entry>
<entry>
<title>ファイルを読み込む#embed命令を追加 [P1967R14] -- C++26 #embed : 仕様の抜け・誤りを修正</title>
<link href="https://cpprefjp.github.io/lang/cpp26/embed.html"/>
<id>4c8ab8910974c2ddb5682a3d5254b25eb69edf81:lang/cpp26/embed.md</id>
<updated>2026-09-08T20:49:05+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp26/embed.md b/lang/cpp26/embed.md
index d13d8af42..60dff5cce 100644
--- a/lang/cpp26/embed.md
+++ b/lang/cpp26/embed.md
@@ -10,76 +10,244 @@
&lt;!-- last lang caution --&gt;
## 概要
-C++26では、`#embed`ディレクティブが追加される。
+C++26では、ファイルなどのリソースの内容をソースコードへ埋め込む`#embed`前処理ディレクティブが追加される。
-これは、バイナリリソースを直接コード内に埋め込む機能を提供する。
+これによって、これまで実行時に読み込んでいた画像・音声・シェーダなどのバイナリリソースを、コンパイル時に読み込んで実行ファイルへ埋め込めるようになる。
+
+```cpp
+constexpr unsigned char image[] = {
+#embed &#34;image.png&#34;
+};
+```
+
+従来は、外部ツールでバイナリを`0x89, 0x50, ...`のようなソースコードへ変換してからインクルードする必要があった。この方法はビルド手順が複雑になるうえ、巨大な初期化子リストのコンパイルに長い時間とメモリを要していた。`#embed`は処理系がリソースを直接読み込むため、これらの問題を避けられる。
-これにより、今までは実行時に読み込んでいたファイルなどがコンパイル時点で読み込まれ、実行ファイル内に埋め込むことができるようになる。
## 仕様
-`#embed`ディレクティブによって読み込まれたバイナリは、`constexpr unsigned char`配列として扱われる。
-```cpp example
-#include &lt;iostream&gt;
+### リソース
+`#embed`が読み込む対象は、規格では「ファイル」ではなく「リソース (resource)」と呼ばれ、翻訳環境からアクセスできるデータの供給源として定義されている。リソースをどのように特定・検索するかは処理系定義であるため、通常のファイル以外も対象となりうる。
-int main() {
- constexpr unsigned char image_binary[] = {
- #embed &#34;image.bin&#34;
- };
- std::cout &lt;&lt; std::hex;
- for (unsigned char c : image_binary) {
- std::cout &lt;&lt; static_cast&lt;int&gt;(c) &lt;&lt; &#39; &#39;;
- }
- std::cout &lt;&lt; std::endl;
-}
+- POSIXのキャラクタデバイスや疑似ファイル(`/dev/urandom`など)。このような「無限に読み出せるリソース」の存在が、読み込む要素数の上限を指定する`limit`パラメータが導入された動機となっている
+- 処理系が独自にサポートする、URIのような指定方法によるリソース(ネットワーク越しの取得や、認証・権限の確認をともなうものを含む)
+- ビルドシステムなどが提供する、実体がファイルではないリソース
+
+リソースは[`std::fgetc()`](/reference/cstdio/fgetc.md)によってバイナリファイルとして読み出されたかのように、先頭から1バイトずつ読み込まれる。
+
+
+### 構文
+`#embed`ディレクティブは、`#include`と同じ2つの形式でリソースを指定する。
+
+```cpp
+#embed &lt;ヘッダ名&gt; // 処理系定義の場所からリソースを検索する
+#embed &#34;ファイル名&#34; // 名前でリソースを特定する。失敗した場合は&lt;&gt;形式と同じ検索を行う
```
-このプログラムは、`image.bin`をバイナリデータとして扱い、バイト列を出力している。
-つまり、下のプログラムのように`#embed`を使用するとテキストファイルの中身をそのままchar配列に格納していることと同じになる。
-```cpp example
-int main() {
- constexpr char text[] = {
- #embed &#34;test.txt&#34;
+リソースの検索方法は処理系定義であり、`#include`とは別の検索パスをもつことが推奨されている。リソースが見つからない場合、およびリソースを処理できない場合、プログラムは不適格となる。
+
+指定部分にマクロを使用することもできる。この場合、マクロを展開した結果からヘッダ名を形成する。
+
+```cpp
+#define RESOURCE &#34;data.bin&#34;
+#embed RESOURCE
+```
+
+### 置き換えの結果
+`#embed`ディレクティブは、`int`型の整数リテラルをカンマで区切ったリストへ置き換えられる。配列になるわけではないため、初期化子リストの中だけでなく、単一の値が必要な場所にも使用できる。
+
+```cpp
+constexpr unsigned char data[] = {
+#embed &#34;data.bin&#34; // 複数の要素へ展開される
+};
+
+int i =
+#embed &#34;single.bin&#34; // 1バイトのリソースであれば、単一の値としても使用できる
+;
+```
+
+リストの各要素はリソースの1バイトに対応し、その値は`unsigned char`で表現できる範囲となる。リソースのビット幅が[`CHAR_BIT`](/reference/climits/char_bit.md)の整数倍でない場合、プログラムは不適格となる。
+
+なお、`char`が符号付き型である処理系では、`128`以上のバイトを`char`の配列へ格納しようとすると縮小変換によってコンパイルエラーとなる。バイナリを格納する配列の要素型には`unsigned char`または[`std::byte`](/reference/cstddef/byte.md)を使用する。
+
+### 埋め込みパラメータ
+リソースの指定に続けて、以下のパラメータを指定できる。各パラメータは高々1回のみ指定でき、順序は問わない。
+
+| パラメータ | 説明 |
+|------------|------|
+| `limit(定数式)` | リストの要素数の上限を指定する |
+| `prefix(トークン列)` | リストの直前へトークン列を挿入する |
+| `suffix(トークン列)` | リストの直後へトークン列を挿入する |
+| `if_empty(トークン列)` | リソースが空である場合に、ディレクティブ全体をトークン列で置き換える |
+
+```cpp
+constexpr unsigned char data[] = {
+#embed &#34;data.bin&#34; limit(1024) prefix(0x01, 0x02,) suffix(, 0xFF) if_empty(0x00)
+};
+```
+
+- `limit`の引数は、条件付き取り込み(`#if`)と同じ規則で評価される整数定数式であり、`0`以上でなければならない。`defined`は使用できないが、`__has_include`は使用できる
+- `/dev/urandom`のような終端のないリソースを読み込む場合、`limit`を指定しなければ処理系がメモリを使い果たすまで読み込みを続けることになる
+- `prefix`と`suffix`のトークン列は任意の前処理トークン列であり、バイト値に限られない。上記のように、区切りのカンマも自分で書く必要がある
+- `prefix`と`suffix`は、リソースが空である場合には無視される
+- `if_empty`は、リソースが空ではない場合には無視される
+- リソースは、要素数が`0`である場合に空とみなされる。`limit(0)`を指定した場合や、[`offset`](/lang/cpp29/embed_offset_parameter.md)(C++29)でリソースの終端を越えた場合も空となる
+
+これらの標準のパラメータに加えて、`vendor::param`のように`::`で区切った形式の、処理系独自のパラメータを指定できる(条件付きサポート)。
+
+### `__has_embed`前処理演算子
+`#if`などの条件付き取り込みの中で、リソースが存在するかを検査できる。
+
+```cpp
+#if __has_embed(&#34;data.bin&#34;)
+// data.binが存在し、空でない場合の処理
+#endif
+```
+
+`__has_embed`は、[`__has_include`](/lang/cpp17/has_include.md)と同様の前処理演算子であり、`#embed`と同じ形式でリソースと埋め込みパラメータを受け取って、以下のいずれかの値へ置き換えられる。これらの値は、定義済みマクロとしても提供される。
+
+| 定義済みマクロ | 値 | 意味 |
+|----------------|----|------|
+| `__STDC_EMBED_NOT_FOUND__` | `0` | リソースが見つからない、または指定されたパラメータが未サポートである |
+| `__STDC_EMBED_FOUND__` | `1` | リソースが見つかり、空ではない |
+| `__STDC_EMBED_EMPTY__` | `2` | リソースが見つかり、空である |
+
+`__has_embed`では、未知の埋め込みパラメータを指定してもプログラムは不適格とはならず、「未サポート」として`__STDC_EMBED_NOT_FOUND__`が返る。この性質によって、処理系独自のパラメータが使用できるかを検査できる。
+
+### 機能テストマクロ
+- `__cpp_pp_embed`が`202502L`として定義される
+
+
+## 例
+### リソースを読み込む
+```cpp
+#include &lt;print&gt;
+
+int main()
+{
+ // ファイルの内容をバイト列として読み込む
+ constexpr unsigned char data[] = {
+#embed &#34;data.bin&#34;
};
+
+ std::println(&#34;{} bytes&#34;, sizeof(data));
}
```
-`#embed`ディレクティブは、他にもパラメータを受け付ける。
+
+### 埋め込みパラメータを使用する
+以下の例は、自身のソースファイルを読み込むことで、外部のファイルなしに動作を確認できるようにしている。
+
```cpp example
-int main() {
- constexpr unsigned char limited_data[] = {
- #embed &#34;data.bin&#34; limit(1024)
- };
- constexpr unsigned char prefixed_data[] = {
- #embed &#34;data.bin&#34; prefix(0x01, 0x02, 0x03)
+// ABCDEF
+#include &lt;print&gt;
+
+int main()
+{
+ // このソースファイルの先頭9バイト(1行目のコメント)を読み込む
+ constexpr unsigned char head[] = {
+#embed __FILE__ limit(9)
};
- constexpr unsigned char suffixed_data[] = {
- #embed &#34;data.bin&#34; suffix(0xFE, 0xFF)
+ std::println(&#34;{}&#34;, std::string_view{reinterpret_cast&lt;const char*&gt;(head), sizeof(head)});
+
+ // limit(0)によってリソースは空となるため、if_emptyのトークン列へ置き換えられる。
+ // このとき、prefixとsuffixは無視される
+ constexpr int marker[] = {
+#embed __FILE__ limit(0) prefix(1,) suffix(, 2) if_empty(42)
};
- constexpr unsigned char safe_data[] = {
- #embed &#34;data.bin&#34; if_empty(0x00)
+ std::println(&#34;{} {}&#34;, marker[0], sizeof(marker) / sizeof(int));
+
+ // 空ではない場合は、prefixとsuffixが適用され、if_emptyが無視される
+ constexpr unsigned char fixed[] = {
+#embed __FILE__ limit(2) prefix(0x01,) suffix(, 0x02) if_empty(42)
};
+ std::println(&#34;{} {} {}&#34;, fixed[0], fixed[3], sizeof(fixed));
}
```
-それぞれの変数では、以下のようになっている。
-- `limit(1024)`では、読み込むバイトサイズを1024byteに制限する。もしファイルサイズが1024byteよりも大きければ、最初の1024バイトのみが読み込まれる。
-- `prefix(0x01, 0x02, 0x03)`では、`data.bin`の内容の前に`0x01 0x02 0x03`のバイト列を追加している。
-- `suffix(0xFE, 0xFF)`では、`data.bin`の内容のあとに`0xFE 0xFF`のバイト列を追加している。
-- `if_empty(0x00)`では、`data.bin`が空であった場合、`0x00`のバイト列を格納している。
-また、`#embed`ディレクティブは、複数のパラメータを**順不同**で組み合わせて指定することもできる。
+#### 出力
+```
+// ABCDEF
+42 1
+1 2 4
+```
+### ファイル以外のリソースを読み込む
```cpp example
-int main() {
- constexpr unsigned char combined_data[] = {
- #embed &#34;data.bin&#34; limit(1024) prefix(0x01, 0x02) suffix(0xFF) if_empty(0x00)
+#include &lt;print&gt;
+#include &lt;random&gt;
+#include &lt;cstdint&gt;
+
+int main()
+{
+ // コンパイル時に/dev/urandomから4バイトを読み込む。
+ // このリソースには終端がないため、limitの指定が必須となる
+ constexpr unsigned char seed_bytes[] = {
+#embed &#34;/dev/urandom&#34; limit(4)
};
+
+ // 読み込んだ4バイトを32ビットの値にまとめ、乱数エンジンのシードとする
+ std::uint32_t seed = 0;
+ for (unsigned char b : seed_bytes) {
+ seed = (seed &lt;&lt; 8) | b;
+ }
+
+ std::mt19937 engine{seed};
+ std::uniform_int_distribution&lt;int&gt; dist{1, 6};
+
+ std::println(&#34;{}&#34;, dist(engine));
}
```
-これは、`limit(1024)`でファイルサイズを1024バイトに制限し、`prefix(0x01, 0x02)`で先頭バイト列`0x01 0x02`を追加し、
-`suffix(0xFF)`で末尾`0xFF`を追加し、`if_empty(0x00)`で空の場合は`0x00`を格納することになる。
+
+シードはコンパイル時に確定するため、生成される乱数列は実行のたびではなく、コンパイルのたびに変化する。
+
+#### 出力例
+```
+4
+```
+
+### `__has_embed`でリソースの有無を検査する
+```cpp example
+// ABCDEF
+#include &lt;print&gt;
+
+int main()
+{
+#if __has_embed(__FILE__) == __STDC_EMBED_FOUND__
+ std::println(&#34;found&#34;);
+#endif
+
+#if __has_embed(__FILE__ limit(0)) == __STDC_EMBED_EMPTY__
+ std::println(&#34;empty&#34;);
+#endif
+
+#if __has_embed(&#34;no_such_resource.bin&#34;) == __STDC_EMBED_NOT_FOUND__
+ std::println(&#34;not found&#34;);
+#endif
+}
+```
+
+#### 出力
+```
+found
+empty
+not found
+```
+
+
+## この機能が必要になった背景・経緯
+バイナリリソースをプログラムへ埋め込むという要求は古くからあり、実際には以下のような方法がとられてきた。
+
+- 外部ツールでバイナリを`0x89, 0x50, 0x4E, ...`のようなカンマ区切りのソースコードへ変換し、インクルードする
+- リンカのオプションや、アセンブラの`.incbin`のような処理系固有の機能を使用する
+- 実行時にファイルを読み込む
+
+このうち移植性のある方法は最初のものだが、生成されたソースは1バイトあたり数文字のテキストになるため、数MBのリソースでも巨大なファイルとなり、コンパイル時間とメモリ消費が大きな問題になっていた。処理系がリソースを直接読み込む`#embed`であれば、この変換自体が不要になる。
+
+この機能はC23で`&lt;stdio.h&gt;`とは独立した前処理ディレクティブとして先に標準化され、C++26でも同じ構文・意味論で取り込まれた。
## &lt;a id=&#34;relative-page&#34; href=&#34;#relative-page&#34;&gt;関連項目&lt;/a&gt;
+- [C++17 `__has_include`](/lang/cpp17/has_include.md)
- [C++29 `#embed`に`offset`パラメータを追加](/lang/cpp29/embed_offset_parameter.md)
+- [`std::byte`](/reference/cstddef/byte.md)
## 参照
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>syncstream -- syncstream : リンク追加</title>
<link href="https://cpprefjp.github.io/reference/syncstream.html"/>
<id>cf56957085d39e59b4caa1e008f1282c2c350097:reference/syncstream.md</id>
<updated>2026-09-08T17:03:42+09:00</updated>
<content type="html"><div class="header">&lt;syncstream&gt;</div><h1 itemprop="name"><span class="token">syncstream</span><span class="cpp cpp20" title="C++20で追加">(C++20)</span></h1>
<div itemprop="articleBody"><p>ヘッダ<code>&lt;syncstream&gt;</code>は、同じストリームへアトミックに出力するメカニズムを提供する。</p>
<p>このヘッダは、以下のヘッダをインクルードすることが規定されている。</p>
<ul>
<li><code><a href="ostream.html">&lt;ostream&gt;</a></code></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="syncstream/basic_syncbuf.html">basic_syncbuf</a></code></td>
<td>同期化出力ストリームバッファラッパー</td>
<td>C++20</td>
</tr>
<tr>
<td><code><a href="syncstream/basic_osyncstream.html">basic_osyncstream</a></code></td>
<td>同期化出力ストリームラッパー</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>syncbuf</code></td>
<td><code><a href="syncstream/basic_syncbuf.html">basic_syncbuf</a>&lt;char&gt;</code></td>
<td>C++20</td>
</tr>
<tr>
<td><code>wsyncbuf</code></td>
<td><code><a href="syncstream/basic_syncbuf.html">basic_syncbuf</a>&lt;wchar_t&gt;</code></td>
<td>C++20</td>
</tr>
<tr>
<td><code>osyncstream</code></td>
<td><code><a href="syncstream/basic_osyncstream.html">basic_osyncstream</a>&lt;char&gt;</code></td>
<td>C++20</td>
</tr>
<tr>
<td><code>wosyncstream</code></td>
<td><code><a href="syncstream/basic_osyncstream.html">basic_osyncstream</a>&lt;wchar_t&gt;</code></td>
<td>C++20</td>
</tr>
</tbody>
</table>
<h2>バージョン</h2>
<h3>言語</h3>
<ul>
<li>C++20</li>
</ul>
<h3>処理系</h3>
<ul>
<li><a href="../implementation.html#clang">Clang</a>: ??</li>
<li><a href="../implementation.html#gcc">GCC</a>: 11.1 <span aria-label="検証済" role="img" title="検証済">✅</span></li>
<li><a href="../implementation.html#visual_cpp">Visual C++</a>: 2019 update 10 <span aria-label="検証済" role="img" title="検証済">✅</span></li>
</ul>
<h2>関連項目</h2>
<ul>
<li><code><a href="iostream.html">&lt;iostream&gt;</a></code></li>
</ul>
<h2>参照</h2>
<ul>
<li><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0053r7.pdf" target="_blank">P0053R7 C++ Synchronized Buffered Ostream</a></li>
</ul></div></content>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>機能テストマクロ -- リンクミスを修正</title>
<link href="https://cpprefjp.github.io/lang/cpp26/feature_test_macros.html"/>
<id>93754111d984c5f1bb28801509c8e0a7e4d6313e:lang/cpp26/feature_test_macros.md</id>
<updated>2026-09-08T17:03:31+09:00</updated>
<content type="html"><h1 itemprop="name"><span class="token">機能テストマクロ</span><span class="cpp cpp26" title="C++26で追加">(C++26)</span></h1>
<div itemprop="articleBody"><p>
</p>
<p>このページはC++26に採用された言語機能の変更を解説しています。</p>
<p>のちのC++規格でさらに変更される場合があるため<a href="#relative-page">関連項目</a>を参照してください。</p>
<p>
</p>
<h2>概要</h2>
<h3>言語機能</h3>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>マクロ名</th>
<th>値</th>
<th>機能</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>__cpp_constexpr</code></td>
<td><code>202406L</code></td>
<td><a href="constexpr_cast_from_voidptr.html">定数式での<code>void*</code>からポインタ型へのキャストを許可</a><br /><a href="constexpr_placement_new.html"><code>constexpr</code>配置<code>new</code></a></td>
</tr>
<tr>
<td><code>__cpp_constexpr_exceptions</code></td>
<td><code>202411L</code></td>
<td><a href="allowing_exception_throwing_in_constant-evaluation.html">定数評価での例外送出を許可</a></td>
</tr>
<tr>
<td><code>__cpp_constexpr_virtual_inheritance</code></td>
<td><code>202506L</code></td>
<td><code>constexpr</code>仮想継承を許可</td>
</tr>
<tr>
<td><code>__cpp_contracts</code></td>
<td><code>202502L</code></td>
<td><a href="contracts.html">契約プログラミングをサポートする</a></td>
</tr>
<tr>
<td><code>__cpp_deleted_function</code></td>
<td><code>202403L</code></td>
<td><a href="delete_reason.html">関数宣言を削除する理由を指定できるようにする</a></td>
</tr>
<tr>
<td><code>__cpp_expansion_statements</code></td>
<td><code>202506L</code></td>
<td><a href="expansion_statements.html">コンパイル時のタプルやリストを展開処理する<code>template for</code>文</a></td>
</tr>
<tr>
<td><code>__cpp_impl_reflection</code></td>
<td><code>202506L</code></td>
<td><a href="reflection.html">静的リフレクション</a></td>
</tr>
<tr>
<td><code>__cpp_pack_indexing</code></td>
<td><code>202311L</code></td>
<td><a href="pack_indexing.html">パラメータパックへのインデックスアクセスを許可</a></td>
</tr>
<tr>
<td><code>__cpp_placeholder_variables</code></td>
<td><code>202306L</code></td>
<td><a href="nice_placeholder_with_no_name.html">宣言のみで使用しない変数の名前として<code>_</code>をサポート</a></td>
</tr>
<tr>
<td><code>__cpp_pp_embed</code></td>
<td><code>202502L</code></td>
<td><a href="embed.html">ファイルを読み込む<code>#embed</code>命令を追加</a></td>
</tr>
<tr>
<td><code>__cpp_static_assert</code></td>
<td><code>202306L</code></td>
<td><a href="user-generated_static_assert_messages.html"><code>static_assert</code>の診断メッセージにユーザーが生成した文字列の指定を許可</a></td>
</tr>
<tr>
<td><code>__cpp_structured_bindings</code></td>
<td><code>202411L</code></td>
<td><a href="attributes_for_structured_bindings.html">構造化束縛への属性を許可</a><br /><a href="structured_bindings_can_introduce_a_pack.html">構造化束縛でパックを導入できるようにする</a></td>
</tr>
<tr>
<td><code>__cpp_template_parameters</code></td>
<td><code>202502L</code></td>
<td><a href="concept_and_variable-template_template-parameters.html">コンセプトと変数テンプレートをテンプレート引数として渡せるようにする</a></td>
</tr>
<tr>
<td><code>__cpp_trivial_relocatability</code></td>
<td><code>202502L</code></td>
<td>トリビアルな再配置</td>
</tr>
<tr>
<td><code>__cpp_trivial_union</code></td>
<td><code>202603L</code></td>
<td><a href="trivial_unions.html">共用体の特殊メンバ関数のトリビアル化</a> (<code>202502L</code>)。<a href="adjustments_to_union_lifetime_rules.html">共用体メンバの生存期間規則の調整</a> (<code>202603L</code>)</td>
</tr>
<tr>
<td><code>__cpp_variadic_friend</code></td>
<td><code>202403L</code></td>
<td><a href="variadic_friends.html">可変引数テンプレートで<code>friend</code>宣言をできるようにする</a></td>
</tr>
</tbody>
</table>
<h3>ライブラリ</h3>
<p>ライブラリの機能テストマクロは全て<code><a href="../../reference/version.html">&lt;version&gt;</a></code>でも提供される。</p>
<table border="1" bordercolor="#888" style="border-collapse:collapse">
<thead>
<tr>
<th>マクロ名</th>
<th>値</th>
<th>機能</th>
<th>ヘッダ</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>__cpp_lib_algorithm_default_value_type</code></td>
<td><code>202603L</code></td>
<td>一部アルゴリズムに、値を波カッコ初期化で渡せるよう制約を追加 (P3787R2で<code><a href="../../reference/memory/uninitialized_fill.html">uninitialized_fill</a></code>/<code><a href="../../reference/memory/uninitialized_fill_n.html">uninitialized_fill_n</a></code>を追加)</td>
<td><code><a href="../../reference/algorithm.html">&lt;algorithm&gt;</a></code>, <code><a href="../../reference/ranges.html">&lt;ranges&gt;</a></code>, <code><a href="../../reference/string.html">&lt;string&gt;</a></code>, <code><a href="../../reference/deque.html">&lt;deque&gt;</a></code>, <code><a href="../../reference/list.html">&lt;list&gt;</a></code>, <code><a href="../../reference/forward_list.html">&lt;forward_list&gt;</a></code>, <code><a href="../../reference/vector.html">&lt;vector&gt;</a></code>, <code><a href="../../reference/memory.html">&lt;memory&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_aligned_accessor</code></td>
<td><code>202411L</code></td>
<td><code><a href="../../reference/mdspan.html">&lt;mdspan&gt;</a></code>に、要素アクセスにアライメント保証を与える<code><a href="../../reference/mdspan/aligned_accessor.html">std::aligned_accessor</a></code>を追加</td>
<td><code><a href="../../reference/mdspan.html">&lt;mdspan&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_associative_heterogeneous_insertion</code></td>
<td><code>202306L</code></td>
<td>連想コンテナの一部メンバ関数に、一時オブジェクト生成のコストを抑える拡張を追加</td>
<td><code><a href="../../reference/map.html">&lt;map&gt;</a></code>, <code><a href="../../reference/set.html">&lt;set&gt;</a></code>, <code><a href="../../reference/unordered_map.html">&lt;unordered_map&gt;</a></code>, <code><a href="../../reference/unordered_set.html">&lt;unordered_set&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_apply</code></td>
<td><code>202603L</code></td>
<td><code><a href="../../reference/tuple/apply.html">std::apply</a></code>の戻り値型推論をやめて、戻り値型用の<code><a href="../../reference/type_traits/apply_result.html">std::apply_result</a></code>クラスを追加 (<code>202506L</code>)。<code><a href="../../reference/meta.html">&lt;meta&gt;</a></code>にも対応する<code><a href="../../reference/meta/apply_result.html">std::meta::apply_result</a></code>などを追加 (<code>202603L</code>)</td>
<td><code><a href="../../reference/tuple.html">&lt;tuple&gt;</a></code>, <code><a href="../../reference/type_traits.html">&lt;type_traits&gt;</a></code>, <code><a href="../../reference/meta.html">&lt;meta&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_atomic_min_max</code></td>
<td><code>202506L</code></td>
<td><code><a href="../../reference/atomic/atomic.html">std::atomic</a></code>オブジェクトに対する2つの値の最大値・最小値を取得する関数を追加</td>
<td><code><a href="../../reference/atomic.html">&lt;atomic&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_atomic_reductions</code></td>
<td><code>202506L</code></td>
<td><code><a href="../../reference/atomic/atomic.html">std::atomic</a></code>と<code><a href="../../reference/atomic/atomic_ref.html">std::atomic_ref</a></code>に高速な縮約用の操作を追加</td>
<td><code><a href="../../reference/atomic.html">&lt;atomic&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_atomic_ref</code></td>
<td><code>202411L</code></td>
<td><code><a href="../../reference/atomic/atomic_ref.html">std::atomic_ref</a></code>に<code><a href="../../reference/atomic/atomic_ref/address.html">address()</a></code>メンバ関数を追加</td>
<td><code><a href="../../reference/atomic.html">&lt;atomic&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_bind_back</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/functional/bind_back.html">std::bind_back()</a></code>に、非型テンプレート引数として関数を指定するオーバーロードを追加</td>
<td><code><a href="../../reference/functional.html">&lt;functional&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_bind_front</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/functional/bind_front.html">std::bind_front()</a></code>に、非型テンプレート引数として関数を指定するオーバーロードを追加</td>
<td><code><a href="../../reference/functional.html">&lt;functional&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_bitset</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/bitset/bitset.html">std::bitset</a></code>に、<code><a href="../../reference/string_view/basic_string_view.html">std::basic_string_view</a></code>を受け取るコンストラクタを追加</td>
<td><code><a href="../../reference/bitset.html">&lt;bitset&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_chrono</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/chrono.html">&lt;chrono&gt;</a></code>のクラスに、ハッシュ値サポートとして<code><a href="../../reference/functional/hash.html">std::hash</a></code>の特殊化を追加</td>
<td><code><a href="../../reference/chrono.html">&lt;chrono&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constant_wrapper</code></td>
<td><code>202606L</code></td>
<td><code><a href="../../reference/utility.html">&lt;utility&gt;</a></code>に<code><a href="../../reference/utility/constant_wrapper.html">std::constant_wrapper</a></code>を追加 (<code>202603L</code>)。文字列リテラルのサポートを取り消し (<code>202606L</code>)</td>
<td><code><a href="../../reference/utility.html">&lt;utility&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_algorithms</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/algorithm/stable_sort.html">std::stable_sort()</a></code> / <code><a href="../../reference/algorithm/ranges_stable_sort.html">std::ranges::stable_sort()</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/algorithm.html">&lt;algorithm&gt;</a></code>, <code><a href="../../reference/utility.html">&lt;utility&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_atomic</code></td>
<td><code>202411L</code></td>
<td><code><a href="../../reference/atomic.html">&lt;atomic&gt;</a></code>ライブラリのアトミック操作を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/atomic.html">&lt;atomic&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_cmath</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/cmath.html">&lt;cmath&gt;</a></code>の関数 (特殊関数と丸めモードに依存する関数以外の全て) を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/cmath.html">&lt;cmath&gt;</a></code>, <code><a href="../../reference/cstdlib.html">&lt;cstdlib&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_complex</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/complex/complex.html">std::complex</a></code>の全関数を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/complex.html">&lt;complex&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_deque</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/deque/deque.html">std::deque</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/deque.html">&lt;deque&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_exceptions</code></td>
<td><code>202502L</code></td>
<td><a href="allowing_exception_throwing_in_constant-evaluation.html">定数式での例外送出が許可されること</a>にともない、例外クラスの関連機能を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/exception.html">&lt;exception&gt;</a></code>, <code><a href="../../reference/stdexcept.html">&lt;stdexcept&gt;</a></code>, <code><a href="../../reference/expected.html">&lt;expected&gt;</a></code>, <code><a href="../../reference/optional.html">&lt;optional&gt;</a></code>, <code><a href="../../reference/variant.html">&lt;variant&gt;</a></code>, <code><a href="../../reference/format.html">&lt;format&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_flat_map</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/flat_map/flat_map.html">std::flat_map</a></code> / <code><a href="../../reference/flat_map/flat_multimap.html">std::flat_multimap</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/flat_map.html">&lt;flat_map&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_flat_set</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/flat_set/flat_set.html">std::flat_set</a></code> / <code><a href="../../reference/flat_set/flat_multiset.html">std::flat_multiset</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/flat_set.html">&lt;flat_set&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_forward_list</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/forward_list/forward_list.html">std::forward_list</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/forward_list.html">&lt;forward_list&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_inplace_vector</code></td>
<td><code>202603L</code></td>
<td><code><a href="../../reference/inplace_vector/inplace_vector.html">std::inplace_vector</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/inplace_vector.html">&lt;inplace_vector&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_list</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/list/list.html">std::list</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/list.html">&lt;list&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_map</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/map/map.html">std::map</a></code> / <code><a href="../../reference/map/multimap.html">std::multimap</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/map.html">&lt;map&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_memory</code></td>
<td><code>202506L</code></td>
<td><code><a href="../../reference/memory/shared_ptr.html">std::shared_ptr</a></code>クラスとその関連機能を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/memory.html">&lt;memory&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_new</code></td>
<td><code>202406L</code></td>
<td><a href="constexpr_placement_new.html"><code>constexpr</code>配置<code>new</code></a></td>
<td><code><a href="../../reference/new.html">&lt;new&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_queue</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/queue/queue.html">std::queue</a></code> / <code><a href="../../reference/queue/priority_queue.html">std::priority_queue</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/queue.html">&lt;queue&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_set</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/set/set.html">std::set</a></code> / <code><a href="../../reference/set/multiset.html">std::multiset</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/set.html">&lt;set&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_stack</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/stack/stack.html">std::stack</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/stack.html">&lt;stack&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_string</code></td>
<td><code>202511L</code></td>
<td><code><a href="../../reference/string/to_string.html">std::to_string()</a></code>・<code><a href="../../reference/string/to_wstring.html">std::to_wstring()</a></code>の整数版が<code>constexpr</code>対応</td>
<td><code><a href="../../reference/string.html">&lt;string&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_unordered_map</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/unordered_map/unordered_map.html">std::unordered_map</a></code> / <code><a href="../../reference/unordered_map/unordered_multimap.html">std::unordered_multimap</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/unordered_map.html">&lt;unordered_map&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constexpr_unordered_set</code></td>
<td><code>202502L</code></td>
<td><code><a href="../../reference/unordered_set/unordered_set.html">std::unordered_set</a></code> / <code><a href="../../reference/unordered_set/unordered_multiset.html">std::unordered_multiset</a></code>を<code>constexpr</code>対応</td>
<td><code><a href="../../reference/unordered_set.html">&lt;unordered_set&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_constrained_equality</code></td>
<td><code>202411L</code></td>
<td><code><a href="../../reference/functional/reference_wrapper.html">std::reference_wrapper</a></code>に、比較演算子<code><a href="../../reference/functional/reference_wrapper/op_equal.html">==</a></code>と<code><a href="../../reference/functional/reference_wrapper/op_compare_3way.html">&lt;=&gt;</a></code>を追加</td>
<td><code><a href="../../reference/utility.html">&lt;utility&gt;</a></code>, <code><a href="../../reference/tuple.html">&lt;tuple&gt;</a></code>, <code><a href="../../reference/optional.html">&lt;optional&gt;</a></code>, <code><a href="../../reference/variant.html">&lt;variant&gt;</a></code>, <code><a href="../../reference/expected.html">&lt;expected&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_contracts</code></td>
<td><code>202502L</code></td>
<td><a href="contracts.html">契約プログラミングをサポートする</a></td>
<td><code><a href="../../reference/contracts.html">&lt;contracts&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_copyable_function</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/functional.html">&lt;functional&gt;</a></code>に<code><a href="../../reference/functional/copyable_function.html">std::copyable_function</a></code>を追加</td>
<td><code><a href="../../reference/functional.html">&lt;functional&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_counting_scope</code></td>
<td><code>202506L</code></td>
<td><code><a href="../../reference/execution.html">&lt;execution&gt;</a></code>に<code><a href="../../reference/execution/execution/spawn.html">std::execution::spawn</a></code>、<code><a href="../../reference/execution/execution/scope_token.html">std::execution::scope_token</a></code>などを追加</td>
<td><code><a href="../../reference/execution.html">&lt;execution&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_debugging</code></td>
<td><code>202403L</code></td>
<td>デバッグサポートのライブラリとして<code><a href="../../reference/debugging.html">&lt;debugging&gt;</a></code>を追加</td>
<td><code><a href="../../reference/debugging.html">&lt;debugging&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_define_static</code></td>
<td><code>202506L</code></td>
<td></td>
<td><code><a href="../../reference/meta.html">&lt;meta&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_exception_ptr_cast</code></td>
<td><code>202603L</code></td>
<td><code><a href="../../reference/exception/exception_ptr.html">std::exception_ptr</a></code>を指定した例外型にキャストする<code><a href="../../reference/exception/exception_ptr_cast.html">std::exception_ptr_cast()</a></code>関数を追加</td>
<td><code><a href="../../reference/exception.html">&lt;exception&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_format</code></td>
<td><code>202603L</code></td>
<td><code><a href="../../reference/format/dynamic_format.html">std::dynamic_format</a></code></td>
<td><code><a href="../../reference/format.html">&lt;format&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_format_path</code></td>
<td><code>202506L</code></td>
<td><code><a href="../../reference/filesystem/path.html">std::filesystem::path</a></code>クラスに、文字列フォーマットのサポートを追加<br /><code><a href="../../reference/filesystem/path.html">std::filesystem::path</a></code>クラスに、出力用の文字列を取得するためのメンバ関数を追加</td>
<td><code><a href="../../reference/filesystem.html">&lt;filesystem&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_format_uchar</code></td>
<td><code>202311L</code></td>
<td><code><a href="../../reference/format/format.html">std::format</a></code>が<code>char</code>を数値出力する際は符号なしとして扱う</td>
<td><code><a href="../../reference/format.html">&lt;format&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_algorithm</code></td>
<td><code>202502L</code></td>
<td></td>
<td><code><a href="../../reference/algorithm.html">&lt;algorithm&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_array</code></td>
<td><code>202311L</code></td>
<td></td>
<td><code><a href="../../reference/array.html">&lt;array&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_char_traits</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/string.html">&lt;string&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_charconv</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/charconv.html">&lt;charconv&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_cstdlib</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/cstdlib.html">&lt;cstdlib&gt;</a></code>, <code><a href="../../reference/cmath.html">&lt;cmath&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_cstring</code></td>
<td><code>202311L</code></td>
<td></td>
<td><code><a href="../../reference/cstring.html">&lt;cstring&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_cwchar</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/cwchar.html">&lt;cwchar&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_errc</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/cerrno.html">&lt;cerrno&gt;</a></code>, <code><a href="../../reference/system_error.html">&lt;system_error&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_execution</code></td>
<td><code>202502L</code></td>
<td></td>
<td><code><a href="../../reference/execution.html">&lt;execution&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_expected</code></td>
<td><code>202311L</code></td>
<td></td>
<td><code><a href="../../reference/expected.html">&lt;expected&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_feature_test_macros</code></td>
<td><code>202306L</code></td>
<td></td>
<td></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_functional</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/functional.html">&lt;functional&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_iterator</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/iterator.html">&lt;iterator&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_mdspan</code></td>
<td><code>202311L</code></td>
<td></td>
<td><code><a href="../../reference/mdspan.html">&lt;mdspan&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_memory</code></td>
<td><code>202502L</code></td>
<td></td>
<td><code><a href="../../reference/memory.html">&lt;memory&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_numeric</code></td>
<td><code>202502L</code></td>
<td></td>
<td><code><a href="../../reference/numeric.html">&lt;numeric&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_operator_new</code></td>
<td><code>202306L</code> or <code>0</code></td>
<td></td>
<td><code><a href="../../reference/new.html">&lt;new&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_optional</code></td>
<td><code>202506L</code></td>
<td></td>
<td><code><a href="../../reference/optional.html">&lt;optional&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_random</code></td>
<td><code>202502L</code></td>
<td></td>
<td><code><a href="../../reference/random.html">&lt;random&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_ranges</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/ranges.html">&lt;ranges&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_ratio</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/ratio.html">&lt;ratio&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_string_view</code></td>
<td><code>202311L</code></td>
<td></td>
<td><code><a href="../../reference/string_view.html">&lt;string_view&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_tuple</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/tuple.html">&lt;tuple&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_utility</code></td>
<td><code>202306L</code></td>
<td></td>
<td><code><a href="../../reference/utility.html">&lt;utility&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_freestanding_variant</code></td>
<td><code>202311L</code></td>
<td></td>
<td><code><a href="../../reference/variant.html">&lt;variant&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_fstream_native_handle</code></td>
<td><code>202306L</code></td>
<td><code><a href="../../reference/fstream/basic_fstream.html">std::basic_fstream</a></code>などのメンバに、ファイルのネイティブハンドルを追加</td>
<td><code><a href="../../reference/fstream.html">&lt;fstream&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_function_ref</code></td>
<td><code>202604L</code></td>
<td><code><a href="../../reference/functional.html">&lt;functional&gt;</a></code>に<code><a href="../../reference/functional/function_ref.html">std::function_ref</a></code>を追加</td>
<td><code><a href="../../reference/functional.html">&lt;functional&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_hazard_pointer</code></td>
<td><code>202306L</code></td>
<td>ハザードポインタのライブラリ<code><a href="../../reference/hazard_pointer.html">&lt;hazard_pointer&gt;</a></code>を追加</td>
<td><code><a href="../../reference/hazard_pointer.html">&lt;hazard_pointer&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_hive</code></td>
<td><code>202502L</code></td>
<td>シーケンスコンテナのライブラリ<code><a href="../../reference/hive.html">&lt;hive&gt;</a></code>を追加</td>
<td><code><a href="../../reference/hive.html">&lt;hive&gt;</a></code></td>
</tr>
<tr>
<td><code>__cpp_lib_indirect</code></td>
<td><code>202502L</code></td>