forked from cdervis/cppstat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeatures_cpp26.yaml
More file actions
1638 lines (1451 loc) · 43.6 KB
/
features_cpp26.yaml
File metadata and controls
1638 lines (1451 loc) · 43.6 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
---
features:
- desc: "UB? In My Lexer? (Remove undefined behavior from lexing)"
paper: P2621
support:
- GCC
- Clang 3.3
- Xcode 16
- desc: "Making non-encodable string literals ill-formed"
paper: P1854
support:
- GCC 14
- Clang 14
- Xcode 16
- desc: "[Unevaluated strings](https://en.cppreference.com/w/cpp/language/string_literal.html#Unevaluated_strings)"
paper: P2361
support:
- GCC 14
- Clang 17 (partial)
- Clang 18
- Xcode 16
hints:
- target: Clang 17
msg: "Attributes arguments don't yet parse as unevaluated string literals."
- desc: "Add @, $, and ` to the [basic character set](https://en.cppreference.com/w/cpp/language/charset.html#Basic_character_set)"
paper: P2558
support:
- GCC 15
- Clang
- Xcode 15
- desc: "`constexpr` cast from `void*`: towards `constexpr` type-erasure"
paper: P2738
support:
- GCC 14
- Clang 17
- Xcode 16.3
ftm:
- name: __cpp_constexpr
value: 202306L
- desc: "On the ignorability of standard attributes"
paper: P2552
support:
- GCC 15
- Clang
- Xcode 16.3
- desc: "Static storage for braced initializers"
paper: P2752
support: [GCC 14]
- desc: "User-generated `static_assert` messages"
paper: P2741
content: static-assert-message.md
summary: "`static_assert` can now use user-generated strings, not just string literals."
support:
- GCC 14
- Clang 17
- Xcode 16.3
ftm:
- name: __cpp_static_assert
value: 202306L
- desc: "A nice placeholder with no name (using `_` as a variable name)"
paper: P2169
summary: "The underscore `_` can now be used as a placeholder variable name that doesn't actually bind a name."
support:
- GCC 14
- Clang 18
- Xcode 16.3
ftm:
- name: __cpp_placeholder_variables
value: 202306L
content: placeholder-variable.md
- desc: "Testing for success or failure of `<charconv>` functions"
lib: true
paper: P2497
support: [GCC 14, Clang 18]
ftm:
- name: __cpp_lib_to_chars
value: 202306L
- desc: "Hashing support for `chrono` value classes"
paper: P2592
lib: true
support: [GCC 16, Clang 22]
ftm:
- name: __cpp_lib_chrono
value: 202306L
- desc: "Arithmetic overloads of `std::to_string()` and `std::to_wstring()` use `std::format()`"
paper: P2587
lib: true
support: [GCC 14]
ftm:
- name: __cpp_lib_to_string
value: 202306L
- desc: "`constexpr` stable sorting"
paper: P2562
lib: true
support: [GCC 15, Clang 21]
ftm:
- name: __cpp_lib_constexpr_algorithms
value: 202306L
- desc: "Read-copy update (RCU) (`<rcu>`)"
paper: P2545
summary: "RCU provides efficient concurrent reads with minimal synchronization."
lib: true
ftm:
- name: __cpp_lib_rcu
value: 202306L
- desc: "Hazard pointers (`<hazard_pointer>`)"
paper: P2530
summary: "Hazard pointers enable safe memory reclamation in lock-free data structures."
lib: true
ftm:
- name: __cpp_lib_hazard_pointer
value: 202306L
- desc: "ADL-proof `std::projected`"
paper: P2538
lib: true
support:
- GCC 14
- Clang 18
- MSVC 14.38
- Xcode 16
- desc: "Interfacing `std::stringstream` with `std::string_view`"
paper: P2495
lib: true
support:
- GCC 16
- Clang 19
- Xcode 16.3
ftm:
- name: __cpp_lib_sstream_from_string_view
value: 202306L
- desc: "Formatting pointers"
paper: P2510
content: formatting-pointers.md
lib: true
support:
- GCC 14
- Clang 17
- MSVC 14.40
ftm:
- name: __cpp_lib_format
value: 202304L
- desc: "Freestanding Feature-Test Macros and Implementation-Defined Extensions"
paper: P2198
lib: true
support: [MSVC 14.38]
ftm:
- name: __cpp_lib_freestanding_feature_test_macros
value: 202306L
- name: __cpp_lib_freestanding_functional
value: 202306L
- name: __cpp_lib_freestanding_iterator
value: 202306L
- name: __cpp_lib_freestanding_memory
value: 202306L
- name: __cpp_lib_freestanding_operator_new
value: 202306L
- name: __cpp_lib_freestanding_ranges
value: 202306L
- name: __cpp_lib_freestanding_ratio
value: 202306L
- name: __cpp_lib_freestanding_tuple
value: 202306L
- name: __cpp_lib_freestanding_utility
value: 202306L
- desc: "Freestanding `std::char_traits`, `std::errc` and facilities in: `<charconv>`, `<cstdlib>`, `<cstring>`, `<cwchar>`"
paper: P2338
lib: true
support: [MSVC 14.38]
ftm:
- name: __cpp_lib_freestanding_char_traits
value: 202306L
- name: __cpp_lib_freestanding_charconv
value: 202306L
- name: __cpp_lib_freestanding_cstdlib
value: 202306L
- name: __cpp_lib_freestanding_cstring
value: 202306L
- name: __cpp_lib_freestanding_cwchar
value: 202306L
- name: __cpp_lib_freestanding_errc
value: 202306L
- desc: "Freestanding language: Optional `::operator new`"
paper: P2013
lib: true
support: [MSVC 14.38]
- desc: "Atomic minimum/maximum"
paper: P0493
lib: true
ftm:
- name: __cpp_lib_atomic_min_max
value: 202403L
- desc: "Extending associative containers with the remaining heterogeneous overloads"
paper: P2363
lib: true
ftm:
- name: __cpp_lib_associative_heterogeneous_insertion
value: 202306L
keywords:
[
"insert",
"insert_or_assign",
"bucket",
"map",
"set",
"unordered",
"emplace",
"multiset",
"multimap",
]
- desc: "Enabling the use of `std::weak_ptr` as keys in unordered associative containers"
paper: P1901
lib: true
support: [GCC 16]
ftm:
- name: __cpp_lib_smart_ptr_owner_equality
value: 202306L
- desc: "`std::text_encoding`: text encodings identification"
paper: [P1885, P2862]
lib: true
support: [GCC 14]
ftm:
- name: _cpp_lib_text_encoding
value: 202306L
- desc: "`std::function_ref`: type-erased callable reference"
paper: P0792
summary: "A lightweight, non-owning reference to a callable."
lib: true
support: [GCC 16]
ftm:
- name: __cpp_lib_function_ref
value: 202306L
- desc: "Type-checking format args"
paper: P2757
lib: true
support: [GCC 15]
ftm:
- name: __cpp_lib_format
value: 202305L
- desc: "Member `visit` (`std::variant::visit()`)"
paper: P2637
summary: "`std::variant` now has a member `.visit()` function."
lib: true
support:
- GCC 15
- Clang 19
- Xcode 16.3
ftm:
- name: __cpp_lib_variant
value: 202306L
- name: __cpp_lib_format
value: 202306L
- desc: "Checking if a union alternative is active (`std::is_within_lifetime()`)"
paper: P2641
lib: true
ftm:
- name: __cpp_lib_is_within_lifetime
value: 202306L
support: [Clang 22]
- desc: "Native handles and file streams"
paper: P1759
lib: true
support:
- GCC 14
- Clang 18
- Xcode 16
ftm:
- name: __cpp_lib_fstream_native_handle
value: 202306L
- desc: "Interfacing `std::bitset` with `std::string_view`"
paper: P2697
lib: true
support:
- Clang 18
- Xcode 16
- GCC 16
ftm:
- name: __cpp_lib_bitset
value: 202306L
- desc: "More constexpr for `<cmath>` and `<complex>`"
paper: P1383
lib: true
support: [GCC 4.6]
ftm:
- name: __cpp_lib_constexpr_cmath
value: 202306L
- name: __cpp_lib_constexpr_complex
value: 202306L
- desc: "Adding the new 2022 SI prefixes (`std::quecto`, `std::ronto`, `std::ronna`, `std::quetta`)"
paper: P2734
lib: true
support: [GCC 14, Clang 17 (partial)]
ftm:
- name: __cpp_lib_ratio
value: 202306L
hints:
- target: Clang 17
msg: "Only the feature-testing macro has been added (`__cpp_lib_ratio`)."
- desc: "`std::copyable_function`"
paper: P2548
summary: "A `std::function` variant that guarantees copyability and const-correctness."
content: copyable-function.md
lib: true
ftm:
- name: __cpp_lib_copyable_function
value: 202306L
support: [GCC 16]
- desc: "Bind front and back to NTTP callables (`std::bind_front()`, `std::bind_back()`, `std::not_fn`)"
paper: P2714
lib: true
support: [GCC 16, Clang 20 (partial)]
ftm:
- name: __cpp_lib_bind_front
value: 202306L
desc: "`std::bind_front()` is available"
- name: __cpp_lib_bind_back
value: 202306L
desc: "`std::bind_back()` is available"
- name: __cpp_lib_not_fn
value: 202306L
desc: "`std::not_fn` is available"
- desc: "`std::submdspan()`"
paper: [P2630, P3355]
summary: "Extract sub-views from multidimensional spans."
content: submdspan.md
lib: true
support: [GCC 16]
ftm:
- name: __cpp_lib_submdspan
value: 202306L
- desc: "Template parameter initialization"
paper: P2308
content: template-parameter-init.md
support:
- GCC 9
- Clang 18
- Xcode 16.3
- desc: "[Pack indexing](https://en.cppreference.com/w/cpp/language/pack_indexing.html)"
paper: P2662
summary: "Pack indexing provides direct access to elements in a parameter pack using `...[N]` syntax."
content: pack-indexing.md
support:
- GCC 15
- Clang 19
- Xcode 16.3
ftm:
- name: __cpp_pack_indexing
value: 202311L
- desc: "Remove deprecated arithmetic conversion on enumerations"
paper: P2864
support:
- GCC 14
- Clang 18
- Xcode 16.3
- desc: "Saturation arithmetic"
paper: P0543
summary: "Arithmetic operations that clamp to min/max instead of overflowing."
content: saturation-arithmetic.md
lib: true
support:
- GCC 14
- Clang 18
- Xcode 16
ftm:
- name: __cpp_lib_saturation_arithmetic
value: 202311L
keywords: ["math"]
- desc: "Freestanding library: Partial Classes"
paper: P2407
lib: true
support: [GCC 14, MSVC 14.42]
ftm:
- name: __cpp_lib_freestanding_algorithm
value: 202311L
- name: __cpp_lib_freestanding_array
value: 202311L
- name: __cpp_lib_freestanding_optional
value: 202311L
- name: __cpp_lib_freestanding_string_view
value: 202311L
- name: __cpp_lib_freestanding_variant
value: 202311L
- desc: "Debugging support (`<debugging>`)"
paper: [P2546, P2810]
summary: "The `<debugging>` header provides portable debugging utilities."
lib: true
support: [GCC 16 (hint)]
hints:
- target: GCC 16
msg: "Requires linking with `-lstdc++exp`."
ftm:
- name: __cpp_lib_debugging
value: 202311L
keywords: ["debugger", "breakpoint"]
content: debugging.md
- desc: "Runtime format strings (`std::format()`)"
paper: P2905
content: make-format-args-lvalue.md
lib: true
support:
- GCC 14
- Clang 18
- MSVC 14.40
- Xcode 16
ftm:
- name: __cpp_lib_format
value: 202311L
- desc: "Runtime format strings II (`std::format()`)"
paper: P2918
content: runtime-format.md
lib: true
support:
- GCC 14
- Clang 18
- Xcode 16
ftm:
- name: __cpp_lib_format
value: 202311L
- desc: "Fix formatting of code units as integers (_Dude, where's my char?_)"
paper: P2909
lib: true
support:
- GCC 13.3
- Clang 18
- MSVC 14.40
- Xcode 16
ftm:
- name: __cpp_lib_format_uchar
value: 202311L
- desc: "A new specification for `std::generate_canonical()`"
paper: P0952
lib: true
support: [GCC 16, MSVC 14.42]
- desc: "`std::span` over an initializer list"
paper: P2447
content: span-initializer-list.md
lib: true
support:
- GCC 15
- Clang 18
- Xcode 16
ftm:
- name: __cpp_lib_span_initializer_list
value: 202311L
- desc: "`std::span::at()`"
paper: P2821
content: span-at.md
lib: true
support:
- GCC 14
- Clang 18
- Xcode 16
ftm:
- name: __cpp_lib_span
value: 202311L
- desc: "Remove deprecated `std::allocator` typedef from C++26 (`std::allocator::is_always_equal()`)"
paper: P2868
lib: true
support:
- GCC 15
- Clang 18
- Xcode 16
- desc: "Remove `std::basic_string::reserve()` from C++26"
paper: P2870
lib: true
support: [Clang 18, Xcode 16]
- desc: "Remove deprecated Unicode conversion facets from C++26 (`<codecvt>`)"
paper: P2871
lib: true
support: [Clang 18, Xcode 16]
- desc: "Add tuple protocol to complex"
paper: P2819
content: complex-tuple-protocol.md
lib: true
support:
- GCC 15
- Clang 19
- Xcode 16.3
ftm:
- name: __cpp_lib_tuple_like
value: 202311L
- desc: "Freestanding: Remove `strtok()`"
paper: P2937
lib: true
support: [GCC 14, MSVC 14.40]
ftm:
- name: __cpp_lib_freestanding_cstring
value: 202311L
- desc: "Freestanding library: `std::inout`, `std::expected`, `std::span`"
paper: P2833
lib: true
support: [GCC 14, MSVC 14.42]
ftm:
- name: __cpp_lib_freestanding_expected
value: 202311L
- name: __cpp_lib_freestanding_mdspan
value: 202311L
- name: __cpp_lib_out_ptr
value: 202311L
- name: __cpp_lib_span
value: 202311L
desc: 'Related: <a href="https://wg21.link/P2821">P2821</a>'
- desc: "`std::basic_const_iterator` should follow its underlying type's convertibility"
paper: [P2836, P2950]
lib: true
support: [GCC 14, MSVC 14.40]
ftm:
- name: __cpp_lib_ranges_as_const
value: 202311L
- desc: "Make `assert()` macro user friendly for C and C++"
paper: P2264
content: assert-variadic.md
lib: true
- desc: "A free function linear algebra interface based on the BLAS (`<linalg>`)"
paper: [P1673, P3050, P3222]
lib: true
ftm:
- name: __cpp_lib_linalg
value: 202311L
keywords: ["math"]
- desc: "Disallow binding a returned [glvalue](https://en.cppreference.com/w/cpp/language/value_category.html#glvalue) to a temporary"
paper: P2748
support:
- GCC 14
- Clang 19
- Xcode 16.3
- desc: "Clarifying rules for brace elision in [aggregate initialization](https://en.cppreference.com/w/cpp/language/aggregate_initialization.html)"
paper: P3106
support:
- GCC
- Clang 17
- Xcode 16.3
- desc: "Attributes for [structured bindings](https://en.cppreference.com/w/cpp/language/structured_binding.html)"
paper: P0609
support:
- GCC 15
- Clang 19
- Xcode 16.3
ftm:
- name: __cpp_structured_bindings
value: 202403L
- desc: "Module declarations shouldn't be macros"
paper: P3034
support: [GCC 15, Clang 23]
- desc: "Trivial infinite loops are not undefined behavior"
paper: P2809
support:
- GCC 14
- Clang 19
- Xcode 16.3
content: trivial-infinite-loops.md
keywords: ["safety"]
- desc: "Erroneous behavior for uninitialized reads (and `[[indeterminate]]` attribute)"
paper: P2795
support: [GCC 16]
keywords: ["safety"]
- desc: '= delete("should have a reason");'
paper: P2573
summary: "Deleted functions can now include a message explaining why they're deleted."
content: delete-reason.md
support:
- GCC 15
- Clang 19
- Xcode 16.3
ftm:
- name: __cpp_deleted_function
value: 202403L
- desc: "Variadic friends"
paper: P2893
summary: "Class templates can now declare all types in a parameter pack as friends."
support: [GCC 15, Clang 20]
ftm:
- name: __cpp_variadic_friend
value: 202403L
- desc: "Undeprecate `std::polymorphic_allocator::destroy()` for C++26"
paper: P2875
lib: true
support: [Clang 15, MSVC 14.41]
- desc: "Remove deprecated strstreams from C++26"
paper: P2867
lib: true
support: [Clang 19]
keywords: ["safety"]
- desc: "Remove deprecated `std::shared_ptr` atomic access APIs from C++26"
paper: P2869
lib: true
- desc: "Remove `std::wstring_convert` from C++26"
paper: P2872
lib: true
support: [Clang 19]
- desc: "Permit an efficient implementation of `std::print()`"
paper: [P3107, P3235]
lib: true
support: [GCC 16, MSVC 14.43]
ftm:
- name: __cpp_lib_print
value: 202403L
keywords: ["format"]
- desc: "Printing blank lines with `std::println()`"
paper: P3142
lib: true
content: println-blank-lines.md
support:
- GCC 14
- Clang 19
- MSVC 14.41
- Xcode 16.3
ftm:
- name: __cpp_lib_print
value: 202403L
keywords: ["format"]
- desc: "Formatting of `filesystem::path` (`std::formatter<filesystem::path>`)"
paper: P2845
lib: true
ftm:
- name: __cpp_lib_format_path
value: 202403L
- desc: "`views::concat()`"
paper: P2542
lib: true
support: [GCC 15]
ftm:
- name: __cpp_lib_ranges_concat
value: 202403L
- desc: "Concatenation of `std::string` and `std::string_view`"
paper: P2591
lib: true
support:
- GCC 15
- Clang 19
- Xcode 16.3
ftm:
- name: __cpp_lib_string_view
value: 202403L
- desc: "Enabling list-initialization for algorithms"
paper: [P2248, P3217]
lib: true
support: [GCC 15]
ftm:
- name: __cpp_lib_algorithm_default_value_type
value: 202403L
- desc: "Vector API for random number generation (`ranges::generate_random()`)"
paper: P1068
lib: true
ftm:
- name: __cpp_lib_ranges_generate_random
value: 202403L
- desc: "Comparisons for `std::reference_wrapper` (and constraints for comparisons of `std::pair`, `std::tuple`, `std::optional`, and `std::variant`)"
paper: P2944
lib: true
support:
- GCC 14
- Clang 19 (partial)
- Clang 22 (hint)
hints:
- target: Clang 19
msg: "Constrained equality is not implemented."
- target: Clang 22
msg: "The changes to `tuple`'s equality overload from P2165 are not yet implemented."
ftm:
- name: __cpp_lib_constrained_equality
value: 202403L
desc: "Constrained relational operators for `std::pair`, `std::tuple`, `std::optional` and `std::variant`"
- name: __cpp_lib_reference_wrapper
value: 202403L
desc: "Comparisons for `std::reference_wrapper`"
- desc: "Padded `std::mdspan` layouts"
paper: P2642
lib: true
support: [GCC 16]
ftm:
- name: __cpp_lib_submdspan
value: 202403L
- desc: "Better `std::mdspan`'s [CTAD](https://en.cppreference.com/w/cpp/language/class_template_argument_deduction.html)"
paper: P3029
lib: true
support: [GCC 16, Clang 19]
- desc: "`constexpr` placement `new`"
paper: P2747
summary: "Placement `new` can now be used in constant expressions."
support:
- GCC 15
- Clang 20
- Xcode 26
ftm:
- name: __cpp_constexpr
value: 202406L
- name: __cpp_lib_constexpr_new
value: 202406L
- desc: "Deleting a pointer to an incomplete type should be ill-formed"
paper: P3144
support:
- GCC 15
- Clang 19
- Xcode 16.3
- desc: "Ordering of constraints involving fold expressions"
paper: P2963
support: [Clang 19, Xcode 16.3]
ftm:
- name: __cpp_fold_expressions
value: 202406L
- desc: "Structured binding declaration as a condition"
paper: P0963
summary: "Structured bindings can now be used directly in `if` and `while` conditions."
support:
- GCC 15
- Clang 6 (partial)
- Clang 21
hints:
- target: Clang 6
msg: "Supported as an extension, not fully conforming to standardized version."
ftm:
- name: __cpp_structured_bindings
value: 202406L
keywords: ["decompose"]
- desc: "Removing the common reference requirement from the indirectly invocable concepts"
paper: P2997
lib: true
support:
- GCC 15
- Clang 19
- MSVC 14.42
- desc: "dextents index type parameter (`std::dims`)"
paper: P2389
lib: true
support: [GCC 16, Clang 19]
ftm:
- name: __cpp_lib_mdspan
value: 202406L
- desc: "Give `std::optional` range support"
paper: P3168
summary: "`std::optional` is now a range containing zero or one elements."
lib: true
support: [GCC 16, Clang 22]
ftm:
- name: __cpp_lib_optional_range_support
value: 202406L
- desc: "A type trait for detecting virtual base classes (`std::is_virtual_base_of`)"
paper: P2985
lib: true
support:
- GCC 15
- Clang 20
- Xcode 26
ftm:
- name: __cpp_lib_is_virtual_base_of
value: 202406L
- desc: "`std::inplace_vector`: dynamically-resizable vector with fixed capacity (`<inplace_vector>`)"
paper: P0843
summary: "A fixed-capacity vector that stores elements inline without heap allocation."
content: inplace-vector.md
lib: true
support: [GCC 16]
ftm:
- name: __cpp_lib_inplace_vector
value: 202406L
- desc: "Make `std::ignore` a first-class object"
paper: P2968
lib: true
support:
- GCC 15
- Clang 19
- MSVC 14.42
- desc: "Philox as an extension of the C++ RNG engines (`std::philox_engine`)"
paper: P2075
lib: true
ftm:
- name: __cpp_lib_philox_engine
value: 202406L
support: [GCC 16]
keywords: ["random"]
- desc: "`std::execution` (`<execution>`)"
paper: [P2300, P3396]
summary: "A framework for asynchronous and parallel programming based on senders and receivers."
lib: true
ftm:
- name: __cpp_lib_senders
value: 202406L
content: execution.md
- desc: "`constexpr` structured bindings and references to `constexpr` variables"
paper: P2686
support: [GCC 16 (partial), Clang 22 (partial)]
hints:
- target: GCC 16
msg: "No [references to constexpr variables](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117784)."
- target: Clang 22
msg: "References to `constexpr` and decomposition of tuple-like types are not supported (only arrays and aggregates are)."
- desc: "Allowing exception throwing in constant-evaluation (`constexpr` exceptions)"
paper: P3068
summary: "Exceptions can now be thrown and caught during constant evaluation."
content: constexpr-exceptions.md
support: [GCC 16]
ftm:
- name: __cpp_constexpr_exceptions
value: 202411L
- desc: "Deprecate the notion of trivial types (`std::is_trivial` and `std::is_trivial_v`)"
paper: P3247
lib: true
support: [GCC 15, Clang 21]
- desc: "Remove deprecated array comparisons from C++26"
paper: P2865
support:
- GCC 15
- Clang 20
- Xcode 16
keywords: ["safety"]
- desc: "[Structured bindings](https://en.cppreference.com/w/cpp/language/structured_binding.html) can introduce a pack"
paper: P1061
summary: "Structured bindings can now capture remaining elements into a parameter pack."
support: [GCC 16, Clang 21]
ftm:
- name: __cpp_structured_bindings
value: 202411L
- desc: "The Oxford variadic comma"
paper: P3176
support: [GCC 15, Clang 20]
- desc: "Retiring niebloids"
paper: P3136
lib: true
support:
- GCC
- Clang 14
- MSVC 14.39
- Xcode 14.3
- desc: "`views::cache_latest()` (`views::cache_latest_view`)"
paper: P3138
summary: "Cache the most recent element for repeated access."
lib: true
support: [GCC 15]
ftm:
- name: __cpp_lib_ranges_cache_latest
value: 202411L
- desc: "Constrain `std::expected` equality operators"
paper: P3379
lib: true
support: [GCC 15, Clang 21]
ftm:
- name: __cpp_lib_constrained_equality
value: 202411L
- desc: "`std::aligned_accessor`: An `std::mdspan` accessor expressing pointer over-alignment (and `std::is_sufficiently_aligned()`)"
paper: P2897
lib: true
support: [GCC 16, Clang 21]
ftm:
- name: __cpp_lib_aligned_accessor
value: 202411L
- desc: "Expose `std::atomic_ref`'s object address (`std::atomic_ref::address()`)"
paper: P2835
lib: true
support: [Clang 22]
ftm:
- name: __cpp_lib_atomic_ref
value: 202411L
- desc: "cv-qualified types in `std::atomic` and `std::atomic_ref`"
paper: P3323
lib: true
support: [GCC 16, MSVC 14.44]
- desc: 'Wording for "`constexpr` for specialized memory algorithms"'
paper: P3508
lib: true
support: [GCC 15]
ftm:
- name: __cpp_lib_raw_memory_algorithms
value: 202411L
- desc: "`constexpr` for `std::uninitialized_default_construct()`"
paper: P3369
lib: true
ftm:
- name: __cpp_lib_raw_memory_algorithms
value: 202411L
- desc: "Add new library headers from C23 (`<stdbit.h>` and `<stdckdint.h>`)"
paper: P3370
lib: true
support: [GCC 15]
- desc: "`constexpr` `std::atomic` and `std::atomic_ref`"
paper: P3309
lib: true
ftm:
- name: __cpp_lib_constexpr_atomic
value: 202411L
- desc: "`std::simd` (`<simd>`)"
paper: [P1928, P3430, P3287]
summary: "Portable SIMD (Single Instruction, Multiple Data) vector types."
content: simd.md
lib: true
ftm:
- name: __cpp_lib_simd
value: 202411L
- name: __cpp_lib_simd_complex
value: 202502L
desc: "Support for interleaved complex values in std::datapar::simd"
- desc: "Utility for creating execution environments"
paper: P3325