Namensräume
Varianten
Aktionen

C++ Compiler-Unterstützung

Von cppreference.com
< cpp


Die folgenden Tabellen zeigen die Compiler-Unterstützung für neue C++-Funktionen. Dazu gehören akzeptierte Überarbeitungen des Standards sowie verschiedene technische Spezifikationen.

Inhalt

[bearbeiten] Anmerkungen

* - Bewegen Sie den Mauszeiger über eine Zelle, die mit dem Stern markiert ist *, um zusätzliche Pop-up-Hinweise zu sehen.
DRnn - die Nummer nn nach "DR" bezeichnet die Ziel-C++-Revision, auf die der Defect Report angewendet wird, z. B. DR20 → C++20.

[bearbeiten] C++26 Features

Beachten Sie, dass sich diese Liste ändern kann, da sich der Entwurf des C++26/2c-Standards weiterentwickelt.

[edit] C++26 Core-Sprachfeatures

C++26 Feature

 
Papier(e)

 
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
Nvidia HPC C++ (ehem. PGI)*
Nvidia nvcc
Cray
DR98: Entfernen von undefiniertem Verhalten aus dem Lexing P2621R3 Ja 3.3 16.0.0*
DR98: Nicht kodierbare Stringliterale als fehlerhaft kennzeichnen P1854R4 14 14 16.0.0*
Unevaluierte Strings P2361R6 14 17 (partiell)*
18
16.0.0*
Hinzufügen von @, $ und ` zum Basiszeichensatz P2558R2 15 Ja 16.0.0*
constexpr Cast von void*  (FTM)* P2738R1 14 17
DR20: Zur Ignorierbarkeit von Standardattributen P2552R3 15 Ja
DR11: Statischer Speicher für braced initializers P2752R3 14
Vom Benutzer erzeugte static_assert-Nachrichten  (FTM)* P2741R3 14 17
Platzhaltervariablen ohne Namen  (FTM)* P2169R4 14 18
Pack-Indizierung  (FTM)* P2662R3 15 19
Entfernen veralteter arithmetischer Konvertierungen bei Enumerationen P2864R2 14 18
DR11/20: Template-Parameter-Initialisierung P2308R1 9 18
Binden einer zurückgegebenen Referenz an ein Temporäres verbieten P2748R5 14 19
Attribute für strukturierte Bindungen  (FTM)* P0609R3 15 19
Fehlerhaftes Verhalten bei uninitialisierten Lesevorgängen, Attribut [[indeterminate]] P2795R5
= delete("reason");  (FTM)* P2573R2 15 19
Variadische friends  (FTM)* P2893R3 15 20
DR98: Klärung der Regeln für Brace-Elision in Aggregatinitialisierung P3106R1 Ja 17
DR20: Moduldeklarationen dürfen keine Makros sein P3034R1 15
DR11: Triviale Endlosschleifen sind kein undefiniertes Verhalten P2809R3 14 19
constexpr Placement New  (FTM)*  (FTM)* P2747R2 15 20
Strukturierte Bindungsdeklaration als Bedingung  (FTM)* P0963R3 15 6 (teilweise)*
21
Reihenfolge von Constraints, die Fold Expressions beinhalten  (FTM)* P2963R3 19
Löschen eines Zeigers auf einen unvollständigen Typ sollte fehlerhaft sein P3144R2 15 19 6.7
Strukturierte Bindungen können einen Pack einführen  (FTM)* P1061R10 21
constexpr strukturierte Bindungen und Referenzen auf constexpr Variablen P2686R5 6.7
constexpr Ausnahmen  (FTM)* P3068R6
Oxford Variadic Comma P3176R1 15 20
Entfernen veralteter Array-Vergleiche P2865R6 15
#embed  (FTM)* P1967R14 15 19*
Concept- und Variable-Template-Template-Parameter  (FTM)* P2841R7
Triviale Relokativereit  (FTM)* P2786R13
Triviale Unions  (FTM)* P3074R7
Beobachtbare Checkpoints P1494R5
Contracts  (FTM)* P2900R14
 

C++26 Feature
 

Papier(e)
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
Nvidia HPC C++ (ehem. PGI)*
Nvidia nvcc
Cray

[edit] C++26 Bibliotheksfeatures

C++26 Feature

 
Papier(e)

 
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*
Prüfung auf Erfolg oder Misserfolg der <charconv>-Funktionen  (FTM)* P2497R0 14 18 16.0.0*
std::text_encoding: Identifizierung von Textkodierungen  (FTM)* P1885R12
P2862R1
14
Arithmetische Überladungen von std::to_string und std::to_wstring verwenden std::format  (FTM)* P2587R3 14
Typprüfung von Formatargumenten  (FTM)* P2757R3 15
Formatierung von Zeigern  (FTM)* P2510R3 14* 17* 19.40**
Hashing-Unterstützung für std::chrono-Wertklassen  (FTM)* P2592R3
<rcu>: Read-Copy Update  (FTM)* P2545R4
<hazard_pointer>: Hazard Pointers  (FTM)* P2530R3
ADL-sicheres std::projected P2538R1 14* 18* 19.38** 16.0.0*
constexpr stabiles Sortieren  (FTM)* P2562R1 21*
Member std::basic_format_arg::visit()  (FTM)* P2637R3 15 19
Member std::variant::visit()  (FTM)* P2637R3 15 18
std::is_within_lifetime  (FTM)* P2641R4
Erweiterung assoziativer Container um die verbleibenden heterogenen Überladungen  (FTM)* P2363R5
Verwendung von std::weak_ptr als Schlüssel in ungeordneten assoziativen Containern ermöglichen  (FTM)* P1901R2
Native Handles in File Streams  (FTM)* P1759R6 14 18 16.0.0*
Schnittstellen von String Streams mit std::string_view  (FTM)* P2495R3 19
Schnittstelle von std::bitset mit std::string_view  (FTM)* P2697R1 18 16.0.0*
Mehr constexpr für <cmath> und <complex>  (FTM)*  (FTM)* P1383R2 4.6 (teilweise)*
Hinzufügen der neuen SI-Präfixe von 2022 zu Verhältnissen: std::quecto, std::ronto, std::ronna und std::quetta  (FTM)* P2734R0 14 17
std::function_ref: Typ-erased aufrufbare Referenz  (FTM)* P0792R14
std::copyable_function  (FTM)* P2548R6
std::bind_front, std::bind_back und std::not_fn für NTTP-Aufrufbare  (FTM)*  (FTM)*  (FTM)* P2714R1
std::submdspan()  (FTM)* P2630R4
P3355R1
Freestanding Language: Optional ::operator new P2013R5 N/A
Freestanding std::char_traits, std::errc und Einrichtungen in: <charconv>, <cstdlib>, <cstring>, <cwchar>  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)* P2338R4 N/A
Weitere Freestanding-Einrichtungen  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)* P2198R7 N/A
Sättigungsarithmetik  (FTM)* P0543R3 14 18 16.0.0*
<debugging>: Debugging Support  (FTM)* P2546R5
P2810R4
<linalg>: Eine freie Funktionsschnittstelle für lineare Algebra basierend auf BLAS  (FTM)* P1673R13
P3050R2
P3222R0
Makro assert() benutzerfreundlicher gestalten P2264R7
Laufzeitformatierungszeichenketten  (FTM)* P2918R2 14 18 16.0.0*
std::span über eine Initialisierungsliste  (FTM)* P2447R6 18 16.0.0*
std::span::at()  (FTM)* P2821R5 14 18 16.0.0*
Tuple-Protokoll zu std::complex hinzugefügt  (FTM)* P2819R2 19
Eine neue Spezifikation für std::generate_canonical P0952R2 19.42*
Entfernen des veralteten Typedefs std::allocator::is_always_equal P2868R3 15 18 16.0.0*
Entfernen der Funktionsüberladung von std::basic_string::reserve(), die kein Argument annimmt P2870R3 18 16.0.0*
Entfernen veralteter Unicode-Konvertierungsfacets (<codecvt>) P2871R3 18 16.0.0*
Freestanding: Entfernen von std::strtok  (FTM)* P2937R0 14 19.40*
Freestanding Library: Partielle Klassen  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)* P2407R5 14 19.42*
Freestanding Library: std::inout, std::expected, std::span  (FTM)*  (FTM)*  (FTM)*  (FTM)* P2833R2 14 19.42*
DR23: std::basic_const_iterator sollte der Konvertierbarkeit des zugrundeliegenden Typs folgen  (FTM)* P2836R1
P2950R0
14 19.40*
DR20: std::make_format_args akzeptiert jetzt nur noch lvalue-Referenzen anstelle von Forwarding-Referenzen P2905R2 14 18 19.40* 16.0.0*
DR20: Korrektur der Formatierung von Code-Einheiten als Ganzzahlen  (FTM)* P2909R4 13.3 18 19.40* 16.0.0*
views::concat  (FTM)* P2542R8 15
Verkettung von Strings und String Views  (FTM)* P2591R5 15 19
Aktivierung der Listeninitialisierung für Algorithmen  (FTM)* P2248R8
P3217R0
15
std::ranges::generate_random  (FTM)* P1068R11
Vergleiche für std::reference_wrapper und Constraints für Vergleiche von std::pair, std::tuple, std::optional und std::variant  (FTM)*  (FTM)* P2944R3 14 19 (teilweise)*
Gepufferte mdspan-Layouts  (FTM)* P2642R6
Neues CTAD für std::span und std::mdspan mit ganzzahligen Konstanten P3029R1 19
Atomares Maximum und Minimum  (FTM)* P0493R5
std::formatter<std::filesystem::path>  (FTM)* P2845R8
Leere Zeilen mit std::println() drucken  (FTM)* P3142R0 14* 19* 19.41**
Undeprecate std::polymorphic_allocator::destroy P2875R4 15 19.41*
Entfernen veralteter Strstreams P2867R2 19
Entfernen veralteter atomarer APIs für std::shared_ptr P2869R4
Entfernen von std::wstring_convert P2872R3 19
DR23: Ermöglichen einer effizienten Implementierung von std::print  (FTM)* P3107R5
P3235R3
19.43*
Bibliothek zur Steuerung der Ausführung  (FTM)* P2300R10
P3396R0
std::inplace_vector: Dynamisch skalierbarer Vektor mit fester Kapazität  (FTM)* P0843R14
std::philox_engine: Zählerbasierter Zufallszahlengenerator  (FTM)* P2075R6
std::optional Range-Unterstützung  (FTM)* P3168R2
std::is_virtual_base_of: Typ-Trait zur Erkennung virtueller Basisklassen  (FTM)* P2985R0 15 20
std::dims für std::mdspan  (FTM)* P2389R2 19
DR11: Formale Spezifikation des Typs von std::ignore P2968R2 15 19 19.42*
DR20: Entfernen der Anforderung einer gemeinsamen Referenz von den indirekt aufrufbaren Konzepten  (FTM)* P2997R1 15 19 19.42*
Abwerten von std::is_trivial und std::is_trivial_v P3247R2 15
DR20: Funktionsoperatoren für Algorithmen P3136R1 Ja Ja 19.39* Ja
std::ranges::cache_latest_view  (FTM)* P3138R5 15
Einschränken der Gleichheitsoperatoren von std::expected  (FTM)* P3379R0 15
std::aligned_accessor: Ein std::mdspan-Accessor, der Zeiger-Über-Ausrichtung ausdrückt  (FTM)* P2897R7
std::is_sufficiently_aligned: Prüft die Ausrichtungsvoraussetzung eines Zeigers  (FTM)* P2897R7
std::atomic_ref::address()  (FTM)* P2835R7
DR11/20: cv-qualifizierte Typen in std::atomic und std::atomic_ref P3323R1 19.44*
constexpr std::atomic und std::atomic_ref  (FTM)* P3309R3
constexpr für spezialisierte Speicher-Algorithmen  (FTM)* P3508R0
P3369R0
<stdbit.h> und <stdckdint.h> P3370R1
<simd>: Datenparallele Typen  (FTM)* P1928R15
P3430R3
P3441R2
P3287R3
P2663R7
P2933R4
Ein Hilfsmittel zur Erstellung von Ausführungsumgebungen P3325R5
constexpr für Ausnahmetypen, z.B. std::bad_alloc, std::bad_cast etc.  (FTM)* P3068R6
P3378R2
Trait- und Operationen für triviale Relokation  (FTM)* P2786R13
Defang und Deprecate std::memory_order::consume P3475R1
Lege std::monostate nach <utility> P0472R3 15
std::indirect  (FTM)* P3019R14
std::polymorphic  (FTM)* P3019R14
Mehr constexpr Container und Adaptoren  (FTM)* P3372R2
constexpr std::inplace_vector für nicht-triviale Typen  (FTM)* P3074R7
std::ranges::to_input_view  (FTM)* P3137R3
std::ranges::approximately_sized_range und std::ranges::reserve_hint  (FTM)* P2846R6
<hive>: Ein Bucket-basierter Container, der Speicherorte von gelöschten Elementen wiederverwendet  (FTM)* P0447R28
<contracts>: Unterstützung für die Behandlung von Vertragsverletzungen  (FTM)* P2900R14
Standardbibliotheks-Härtung P3471R4 19.44* (teilweise)*
Freestanding Library: Algorithmus, numerische Berechnungen und Zufallszahlen  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)* P2976R1
DR20: Konvertieren von zusammenhängenden Iteratoren in Zeiger P3349R0
 

C++26 Feature
 

Papier(e)
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*

[bearbeiten] C++23 Features

[bearbeiten] C++23 Kernsprach-Features

C++23 Feature

 
Papier(e)

 
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
Nvidia HPC C++ (ehem. PGI)*
Nvidia nvcc
Cray
Literal-Suffix für (vorzeichenbehaftete) size_t  (FTM)* P0330R8 11 13 19.43* 13.1.6* 6.5 2022.2 23.9
Mache () optionaler für Lambdas P1102R2 11 13 19.44* 13.1.6* 6.3 2022.2 22.5
if consteval  (FTM)* P1938R3 12 14 19.44* 14.0.0* 6.3 2022.2 24.1
Entfernung der Garbage-Collection-Unterstützung P2186R2 12 N/A 19.30* N/A N/A
Verengung kontextbezogener Konvertierungen in static_assert und constexpr if P1401R5 9 13 (partiell)*
14
14.0.0* 2022.2 20.7
Trimmen von Whitespaces vor Zeilensprüngen P2223R2 Ja Ja Ja 6.7 2022.2 Ja
Festlegen der Deklarationsreihenfolge als verpflichtend P1847R4 Ja Ja Ja Ja 2022.2 Ja
Entfernung der Verkettung gemischter Wide-String-Literale Verkettung P2201R1 Ja Ja Ja Ja Ja Ja Ja
Explizite Objektmemberfunktionen (ableiten von this)  (FTM)* P0847R7 14 18
19*
19.32*
(teilweise)*
19.43*
6.3 22.5
auto(x) und auto{x}  (FTM)* P0849R8 12 15 14.0.3* 6.4 2022.2 23.3
#elifdef und #elifndef P2334R1 12 13 19.40* 13.1.6* 6.5 2022.2 23.9
Nicht-Literal-Variablen (und Labels und gotos) in constexpr-Funktionen  (FTM)* P2242R3 12 15 19.43* 14.0.3* 6.3 2022.2 22.5
Konsistente Zeichenkodierung P2316R2 Ja Ja 19.30* Ja Ja 2022.2 Ja
Zeichensätze und Kodierungen P2314R4 10 Ja Ja Ja 2022.2 Ja
Erweiterung von init-statement (des for-Loops) um Alias-Deklarationen zu erlauben P2360R0 12 14 14.0.0* 2022.2
Mehrdimensionaler Subscript-Operator  (FTM)* P2128R6 12 15 19.42* 14.0.3* 2022.2
Attribute für Lambdas P2173R1 9 13 19.44* 13.1.6* 6.6 2022.2 22.5
#warning P2437R1 Ja* Ja 15.0.0* 6.5 2023.2 Ja
Entfernung von nicht kodierbaren Wide-Zeichenliteralen und Multizeichen-Wide-Zeichenliteralen P2362R3 13 14 15.0.0* 6.7 2023.2
Labels am Ende von zusammengesetzten Anweisungen P2324R2 13 16 16.0.0* 6.5 2023.2 23.9
Begrenzte Escape-Sequenzen P2290R3 13 15 15.0.0* 6.7 2023.2
Benannte universelle Zeichen-Escape-Sequenzen  (FTM)* P2071R2 13 15 15.0.0* 6.7 2023.2
Lockerung einiger constexpr-Beschränkungen  (FTM)* P2448R2 13 17 (teilweise)
19
2024.0 (teilweise)
Einfacheres implizites Verschieben  (FTM)* P2266R3 13 13 6.7 2022.2
static operator()  (FTM)* P1169R4 13 16 19.44* 16.0.0* 6.7 2023.2
Anforderungen an optionale erweiterte Gleitkomma-Typen P1467R9 13 N/A 6.4
Klassen-Template-Argument-Deduktion aus geerbten Konstruktoren P2582R1 14
Attribut [[assume]] P1774R8 13 19
Unterstützung für UTF-8 als portable Quellcodedatei-Kodierung P2295R6 13* 15* 19.0 (Update 2)** 15.0.0* 2023.2
static operator[]  (FTM)* P2589R1 13 16 19.44* 16.0.0* 6.7 2023.2
Zulassen von static constexpr Variablen in constexpr-Funktionen  (FTM)* P2647R1 13 16 16.0.0* 2023.2
Erweiterung der Lebensdauer von Temporär-Objekten im Initialisierer von Range-basierten for-Loops  (FTM)* P2644R1
P2718R0
CWG2659
15 19
DR11: Änderung des Gültigkeitsbereichs des Trailing-Return-Typs von Lambdas P2036R3
P2579R0
17 2023.2
DR20: Sinnvolle Exporte P2615R1 15 17 (teilweise)
DR20: consteval muss nach oben propagiert werden  (FTM)* P2564R3 14 17 16.0.0* 6.7 2024.0
DR98: C++-Bezeichnersyntax unter Verwendung von Unicode Standard Annex 31 P1949R7 12 14 14.0.0* 6.4 2022.2
DR11: Doppelte Attribute zulassen P2156R1 11 13 13.1.6* 6.5 23.9
DR20: Anpassung des Werts des Feature-Test-Makros __cpp_concepts P2493R0 12 19.32* 6.4 23.3
DR98: Anforderungen an wchar_t lockern, um bestehende Praktiken anzupassen P2460R2 Ja Ja Ja 15.0.0* N/A 2023.2
DR11: Verwendung unbekannter Zeiger und Referenzen in konstanten Ausdrücken P2280R4 14 20*
DR20: Der Gleichheitsoperator, den Sie suchen P2468R2 13 16 16.0.0* 2023.2
DR20: char8_t Kompatibilitäts- und Portabilitätskorrektur  (FTM)* P2513R4 13 16 19.34* 16.0.0* 2023.2
DR98/11: Klarstellung der Meldung von Diagnose-Direktiven und Zulassung von static_assert nicht-wertabhängiger Ausdrücke im Template-Kontext CWG2518 13 17 16.0*
(teilweise)*
19.40*
 

C++23 Feature
 

Papier(e)
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
Nvidia HPC C++ (ehem. PGI)*
Nvidia nvcc
Cray

[bearbeiten] C++23 Bibliotheks-Features

C++23 Feature

 
Papier(e)

 
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*
Stacktrace-Bibliothek  (FTM)* P0881R7
P2301R1
12 (teilweise)*
14*
19.34*
<stdatomic.h>  (FTM)* P0943R6 12 15 19.31* 14.0.3*
std::is_scoped_enum  (FTM)* P1048R1 11 12 19.30* 13.0.0*
std::basic_string::contains(), std::basic_string_view::contains()  (FTM)* P1679R3 11 12 19.30* 13.0.0*
std::to_underlying  (FTM)* P1682R3 11 13 19.30* 13.1.6*
Lockerung der Anforderungen für time_point<>::clock P2212R2 N/A N/A N/A N/A
Bereitstellung von Größenrückmeldung in der Allocator-Schnittstelle  (Bereitstellung von Größenrückmeldung)  (FTM)* P0401R6 15 19.30* 14.0.3*
<spanstream>: String-Stream mit std::span-basiertem Puffer  (FTM)* P0448R4 12 19.31*
std::out_ptr(), std::inout_ptr()  (FTM)* P1132R8 14 19 19.30*
constexpr type_info::operator==()  (FTM)* P1328R1 12 17 19.33**
19.34*
15.0.0*
Iterator-Paar-Konstruktoren für std::stack und std::queue  (FTM)* P1425R4 12 14 19.31* 14.0.3*
Nicht-Deduktionskontext für Allocators in Container-Deductionsführern P1518R2 12* 13* 19.31** 13.1.6**
ranges::starts_with() und ranges::ends_with()  (FTM)* P1659R3 17 (partiell)*
18
19.31* 16.0.0*
Konstruktion von std::basic_string und std::basic_string_view aus nullptr verbieten P2166R1 12 13 19.30* 13.1.6*
std::invoke_r()  (FTM)* P2136R3 12 17 19.31* 15.0.0*
Range-Konstruktor für std::basic_string_view P1989R2 11 14 19.30* 14.0.3*
Standard-Template-Argumente für den Forwarding-Konstruktor von std::pair P1951R1 14 14 19.30* 14.0.3*
Entfernung von Garbage Collection und reichweitenbasierter Leckerkennung (Bibliotheksunterstützung) P2186R2 12 14 19.30* 14.0.3*
zip: views::zip, views::zip_transform, views::adjacent und views::adjacent_transform  (FTM)* P2321R2 13 15 (teilweise)* 19.33*(teilweise)***
19.37*
14.0.3*
Heterogene Löschüberladungen für assoziative Container  (FTM)* P2077R3 19.32*
std::byteswap()  (FTM)* P1272R4 12 14 19.31* 14.0.3*
Drucken von volatile T* P1147R1 11.3 14 19.31* 14.0.3*
basic_string::resize_and_overwrite()  (FTM)* P1072R10 12 14 19.31* 14.0.3*
Monadische Operationen für std::optional  (FTM)* P0798R8 12 14 19.32* 14.0.3*
std::move_only_function  (FTM)* P0288R9 12 19.32*
Bedingte noexcept-Spezifikation zu std::exchange hinzufügen P2401R0 12 14 19.25* 14.0.3*
std::span & std::basic_string_view müssen TriviallyCopyable sein P2251R1 Ja Ja Ja Ja
Klärung des Status der „C-Header“ P2340R1 Ja Ja Ja Ja
<expected>  (FTM)* P0323R12
P2549R1
12 16 19.33* 15.0.0*
constexpr für <cmath> und <cstdlib>  (FTM)* P0533R9 4.6 (teilweise)*
std::unreachable()  (FTM)* P0627R6 12 15 19.32* 14.0.3*
Vorschlag zur Verlegung von std::aligned_storage und std::aligned_union P1413R3 13 16 19.33*
std::reference_constructs_from_temporary & std::reference_converts_from_temporary  (FTM)* P2255R2 13 (partiell)*
14
19
constexpr std::unique_ptr  (FTM)* P2273R3 12 16 19.33* 15.0.0*
Konstruktion von Containern und Strings aus Ranges mit ranges::to(), getaggten Konstruktoren, Einfüge- und Zuweisungs-Memberfunktionen  (FTM)*  (FTM)* P1206R7 14 (partiell)* 17 19.34* 15.0.0*
Pipe-Unterstützung für benutzerdefinierte Range-Adapter (ranges::range_adaptor_closure, std::bind_back)  (FTM)*  (FTM)* P2387R3 13 (partiell)*
14
19 19.34*
ranges::iota(), ranges::shift_left() und ranges::shift_right()  (FTM)*  (FTM)* P2440R1 13 (partiell)* 19.34*
views::join_with  (FTM)* P2441R2 13 19.34*
views::chunk und views::slide  (FTM)*  (FTM)* P2442R1 13 19.33*
views::chunk_by  (FTM)* P2443R1 13 18 19.33* 16.0.0*
std::mdspan: eine nicht-besitzende mehrdimensionale Array-Referenz  (FTM)* P0009R18
P2599R2
P2604R0
P2613R1
P2763R1
17 (partiell)*
18
19.39* 15.0.0*
<flat_map>  (FTM)* P0429R9 15 20
<flat_set>  (FTM)* P1222R4 15
ranges::find_last(), ranges::find_last_if() und ranges::find_last_if_not()  (FTM)* P1223R5 13 19 19.36*
Freistehende Bibliothek: Einfache <utility>, <ranges> und <iterator> P1642R11 13* N/A
views::stride  (FTM)* P1899R3 13 19.34*
Kompatibilität zwischen std::tuple und Tupel-ähnlichen Objekten  (FTM)* P2165R4 14 2.9 (teilweise)* 19.36* (teilweise)*
19.37*
teilweise*
Korrektur von konstanten Iteratoren, Sentinels und Ranges. views::as_const  (FTM)* P2278R4 13 19.35* (teilweise)*
19.36*
Formatieren von Ranges  (FTM)* P2286R8 16 19.37*(teilweise)*
19.39*(teilweise)*
19.41*(teilweise)*
19.42*
15.0.0*
Verbessertes Standard-Container-Formatieren  (FTM)* P2585R1 16 (teilweise)*
17
19.42* 15.0.0*
Formatierte Ausgabebibliothek <print>  (FTM)* P2093R14
P2539R4
14 17 (partiell)*
18
19.37* 15.0.0**
16.0.0*
Formatieren von std::thread::id und std::stacktrace  (FTM)* P2693R1 14 17 (partiell)* 19.38* 15.0.0*
constexpr für ganzzahlige Überladungen von std::to_chars() und std::from_chars()  (FTM)* P2291R3 13 16 19.34* 15.0.0*
ranges::contains() und ranges::contains_subrange()  (FTM)* P2302R4 13 19 19.34* 16.0.0**
Ranges-Faltungsalgorithmen  (FTM)* P2322R6 13 19.35*
views::cartesian_product  (FTM)* P2374R4
P2540R1
13 19.37*
Unterstützung für Move-Only-Typen für Vergleichskonzepte (equality_comparable, totally_ordered, three_way_comparable)  (FTM)* P2404R3 19.36*
Ranges-Iteratoren als Eingaben für Nicht-Ranges-Algorithmen  (FTM)* P2408R5 19.34*
constexpr std::bitset  (FTM)* P2417R2 13 16 19.34* 15.0.0*
basic_string::substr() && P2438R2 16 19.34* 15.0.0*
views::as_rvalue  (FTM)* P2446R2 13 16 19.34* 15.0.0*
Standardbibliothek-Module  (FTM)* P2465R3 15* 17 (partiell)* 19.35*
(teilweise)*
19.36*
std::forward_like()  (FTM)* P2445R1 14 16 19.34* 15.0.0*
Unterstützung für Exklusivmodus für std::fstream  (FTM)* P2467R1 12 18 19.36* 16.0.0*
views::repeat  (FTM)* P2474R2 13 17 19.36* 15.0.0*
Relaxing Range Adaptors to allow for move-only types  (FTM)* P2494R2 14 17 19.34* 15.0.0*
std::basic_string_view Range-Konstruktor soll explizit sein P2499R0 12.2 16 19.34* 15.0.0*
std::generator: synchrone Coroutine-Generatoren für Ranges  (FTM)* P2502R2
P2787R0
14 19.43*
Hinzufügen einer bedingten noexcept-Spezifikation zu std::apply P2517R1 10 18 19.34* 16.0.0*
Explizites Lebenszeitmanagement (std::start_lifetime_as)  (FTM)* P2590R2
P2679R2
Klarifizierung der Handhabung von Encodings in lokalisierter Formatierung von Chrono-Typen  (FTM)* P2419R2 15* 19.34**
std::move_iterator sollte nicht immer input_iterator sein  (FTM)* P2520R0 12.3* 17* 19.34** 15.0.0*
Deduktionsleitfäden-Update für Aufrufoperatoren mit explizitem Objektparameter LWG3617 14 19.34*
Deduktionsleitfäden-Update für static operator() P1169R4 13 16 19.39* 15.0.0*
Standardnamen und Bibliotheksunterstützung für erweiterte Gleitkommatypen P1467R9 13 19.37**
Monadische Operationen für std::expected  (FTM)* P2505R5 13 17 19.36* 15.0.0*
views::enumerate  (FTM)* P2164R9 13 19.37*
std::is_implicit_lifetime  (FTM)* P2674R1 20
std::common_reference_t von std::reference_wrapper soll ein Referenztyp sein  (FTM)*  (FTM)* P2655R3 19.37*
Benutzerspezialisierung von std::allocator_traits nicht zulassen P2652R2 19 19.37*
Deprecating std::numeric_limits::has_denorm P2614R2 18 19.37* 16.0.0*
Mehrparametrische Konstruktoren von views explicit machen P2711R1 17 (partiell)* 19.36** 15.0.0*
DR20: Relaxing Ranges Just A Smidge  (FTM)* P2609R3 15 20 19.37*
DR20: Stashing Stashing Iterators For Proper Flattening P2770R0 14 18 19.37*
DR17: std::visit() für von std::variant abgeleitete Klassen  (FTM)* P2162R2 11.3 13 19.20**
19.30*
13.1.6*
DR20: Conditionally borrowed ranges P2017R1 11 16 19.30*
DR20: Reparatur von Input-Range-Adaptoren und std::counted_iterator P2259R1 12 19.30*(partiell)*
19.31*
DR20: views::join soll alle Views von Ranges verbinden P2328R1 11.2 15 19.30* 14.0.3*
DR20: view erfordert nicht default_initializable  (FTM)* P2325R3 11.3 16 19.30* 15.0.0*
DR20: Range-Adaptor-Objekte binden Argumente per Wert P2281R1 11 14 19.29 (16.10)*
(teilweise)*
19.31*
14.0.3*
DR20: constexpr für std::optional und std::variant  (FTM)*  (FTM)* P2231R1 11.3 (partiell)*
12
13 (partiell)*
19
19.31* 13.1.6* (partiell)
DR20: views::lazy_split und neu gestaltetes views::split P2210R2 12 16 19.31* 15.0.0*
DR20: Korrektur von ranges::istream_view P2432R1 12 16 19.31* 15.0.0*
DR20: view mit Besitz  (FTM)* P2415R2 12 14 19.31* 14.0.3*
DR20: Behebung des Locale-Handlings in Chrono-Formatierern  (FTM)* P2372R3
P2418R2
13 19.31*
DR20: Bereinigung von Integer-Klassen-Typen P2393R1 19.32*
DR20: Compile-Zeit-Prüfungen von Format-Strings; Reduzierung der Binärcode-Größe der std::format()-Familie  (FTM)* P2216R3 13 14 (partiell)*
15
19.32* 14.0.3*
DR20: Hinzufügen von Unterstützung für nicht-const-formatierbare Typen zu std::format P2418R2 13 15 19.32* 14.0.3*
DR20: std::basic_format_string P2508R1 13 15 19.35* 14.0.3*
DR20: Poison Pills sind zu giftig  (FTM)* P2602R2 14 19 19.36*
DR20: std::format Füllzeichen-Erlaubnisse P2572R1 14 17 19.37*
DR20: Verbesserung der Breitenabschätzung von std::format P2675R1 14 17 19.38*
DR20: Phasenabschlussgarantien von std::barrier  (FTM)* P2588R3 19.28 (16.8)**
19.36*
 

C++23 Feature
 

Papier(e)
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*

[bearbeiten] C++20 Features

[bearbeiten] C++20 Sprach-Kernfeatures

C++20 Feature

 
Papier(e)

 
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
Nvidia HPC C++ (ehem. PGI)*
Nvidia nvcc
Cray
Erlaubt Lambda-Capture [=, this] P0409R2 8 6 19.22* 10.0.0* 5.1 2021.1 20.7 12.0 11.0
__VA_OPT__ P0306R4
P1042R1
8 (partiell)*
10 (partiell)*
12
9 19.25* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Bezeichner-Initialisierer  (FTM)* P0329R4 4.7 (partiell)*
8
3.0 (partiell)*
10
19.21* 12.0.0* 5.1 2021.1 20.7 12.0 11.0
Template-Parameterliste für generische Lambdas  (FTM)* P0428R2 8 9 19.22* 11.0.0* 5.1 2021.1 20.7 12.0 11.0
Standard-Member-Initialisierer für Bitfelder P0683R1 8 6 19.25* 10.0.0* 5.1 2021.1 20.7 12.0 11.0
Initialisierungslistenkonstruktoren bei Class-Template-Argument-Deduktion P0702R1 8 6 19.14* Ja 5.0 2021.1 20.7 12.0 11.0
const&-qualifizierte Zeiger auf Member P0704R1 8 6 19.0 (2015)* 10.0.0* 5.1 2021.1 20.7 12.0 11.0
Konzepte  (FTM)* P0734R0 5*
10
10 19.23* (partiell)*
19.30*
12.0.0* (partiell) 6.1 2023.1* 20.11 12.0 11.0
Lambdas in nicht ausgewerteten Kontexten P0315R4 9 13 (partiell)*
14 (partiell)*
17
19.28 (16.8)* 13.1.6* (partiell) 6.2 2023.1 (partiell)
2024.0
20.7 12.0
Drei-Wege-Vergleichsoperator  (FTM)* P0515R3 10 8 (partiell)
10
19.20* 12.0.0* 5.1 2021.1 20.7 12.0 11.0
DR11: Vereinfachte implizite Lambda-Capture P0588R1 8 19.24* 5.1 2021.1 20.7 12.0
Init-Anweisungen für Bereichsbasierte for-Schleifen P0614R1 9 8 19.25* 11.0.0* 6.0 2021.7 20.11 12.0 11.0
Standardkonstruierbare und zuweisbare zustandslose Lambdas P0624R2 9 8 19.22* 10.0.1* 5.1 2021.1 20.7 12.0 11.0
Typ-Mismatch von standardmäßig initialisierten speziellen Memberfunktionen P0641R2 9 (partiell)* 8 19.0 (2015)* (partiell)* 10.0.1* 5.1 2021.1 20.7 12.0 11.0
Zugriffsprüfung bei Spezialisierungen P0692R1 Ja 8 (partiell)
14
19.26* 14.0.0* 5.1 2021.1 20.7 12.0
ADL und nicht sichtbare Funktionstemplates P0846R0 9 9 19.21* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
DR11: Spezifikation, wann constexpr Funktionsdefinitionen für konstante Auswertung benötigt werden  (FTM)* P0859R0 5.2 (partiell)*
9
8 19.27* (partiell)*
19.31**
11.0.0* (partiell) 12.0 11.0
Attribute [[likely]] und [[unlikely]] P0479R5 9 12 19.26* 13.0.0* 5.1 2021.7 20.7 12.0
typename optionaler machen P0634R3 9 16 19.29 (16.10)* 16.0.0* 5.1 2023.1 20.7 12.0
Pack-Erweiterungen in Lambda-Captures  (FTM)* P0780R2 9 9 19.22* 11.0.3* 6.1 2021.7 20.11 12.0 11.0
Attribut [[no_unique_address]] P0840R2 9 9 19.28 (16.9)** 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Bedingt triviale spezielle Memberfunktionen  (FTM)* P0848R3 10 16 19.28 (16.8)* 6.1 2021.7 20.11 12.0
DR17: Lockerung der Anpassungspunkt-Findungsregeln für strukturierte Bindungen P0961R1 8 8 19.20* 10.0.1* 5.1 2021.1 20.7 12.0 11.0
DR11: Lockerung der Anpassungspunkt-Findungsregeln für Bereichsbasierte for-Schleifen P0962R1 8 8 19.25* 11.0.0* 5.1 2021.1 20.7 12.0 11.0
DR17: Strukturierte Bindungen zu zugänglichen Membern erlauben P0969R0 8 8 19.20* 10.0.1* 5.1 2021.1 20.7 12.0 11.0
Zerstörender operator delete  (FTM)* P0722R3 9 6 19.27* 10.0.0* 6.1 2023.1 20.11 12.0 11.0
Klassentypen in Nicht-Typ-Template-Parametern P0732R2 9 12 (partiell) 19.26* (partiell)*
19.28 (16.9)*
13.0.0* (partiell) 6.2 2023.1 (partiell) 21.3 12.0
Implizites Capturing von this über [=] als veraltet markiert P0806R2 9 7 19.22* 10.0.1* 5.1 20.7 12.0 11.0
explicit(bool)  (FTM)* P0892R2 9 9 19.24* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Integration von Feature-Test-Makros P0941R2 5 3.4 19.15* (partiell)
19.20*
Ja 5.0 2021.1 20.7 12.0 11.0
Aggregate mit benutzerdefinierten Konstruktoren verbieten P1008R1 9 8 19.20* 10.0.1* 5.1 2021.1 20.7 12.0 11.0
constexpr virtuelle Funktionen  (FTM)* P1064R0 9 9 19.28 (16.9)* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Konsistenzverbesserungen für Vergleiche P1120R0 10 8 (partiell)
10
19.22* 12.0.0* 5.1 2023.1 20.7 12.0 11.0
char8_t  (FTM)* P0482R6 9 7* 19.22* 10.0.0* 5.1 2021.1 20.7 12.0 11.0
std::is_constant_evaluated()  (FTM)* P0595R2 9 9 19.25* 11.0.3* 5.1 19.1 21.1 12.0 11.0
constexpr try-catch-Blöcke P1002R1 9 8 19.25* 10.0.1* 5.1 2023.1 20.7 12.0 11.0
Sofortfunktionen (consteval)  (FTM)* P1073R3 10 (partiell)*
11
11 (partiell)
14 (partiell)*
17
19.28 (16.8)*
(teilweise)*

19.29 (16.10)*
11.0.3* (partiell)
15.0.0*
5.1 2021.1 20.7 12.0
Verschachtelte Inline-Namespaces P1094R2 9 8 19.27* 10.0.1* 5.1 2021.1 20.7 12.0 11.0
Ein weiterer Ansatz für beschränkte Deklarationen P1141R2 10 10 19.26* (partiell)
19.28 (16.9)*
12.0.5* 6.1 2023.1 20.11 12.0 11.0
Vorzeichenbehaftete Ganzzahlen sind Zweierkomplement P1236R1 9 9 Ja 11.0.3* N/A 2023.1* ja* 12.0 11.0
dynamic_cast und polymorphes typeid in konstanten Ausdrücken P1327R1 10 9 19.28 (16.9)* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Änderung des aktiven Members eines Unions innerhalb von constexpr  (FTM)* P1330R0 9 9 19.10* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Coroutinen  (FTM)*  (FTM)* P0912R5
LWG3393
10 8 (partiell)
17 (partiell)*
19.0 (2015)* (partiell)
19.10**
19.28 (16.8)*
10.0.1* (partiell) 5.1 2021.1 23.3* 12.0 (nur Host-Code)
Klammer-Initialisierung von Aggregaten  (FTM)* P0960R3 10 16 19.28 (16.8)* 16.0.0* 5.1 2021.1 20.7 12.0
DR11: Array-Größenableitung in new-Ausdrücken P1009R2 11 9 19.27* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Module  (FTM)* P1103R3 11 (partiell) 8 (partiell) 19.0 (2015)* (partiell)
19.10**
19.28 (16.8)*
10.0.1* (partiell) 2023.1 (partiell)
Stärkere Unicode-Anforderungen P1041R4
P1139R2
10 Ja 19.0 (2015)**
19.26**
Ja N/A 2023.1* Ja 12.0 11.0
<=> != == P1185R2 10 10 19.22* 12.0.0* 5.1 2021.1 20.7 12.0 11.0
DR11: Explizit standardmäßige Funktionen mit unterschiedlichen Ausnahme-Spezifikationen P1286R2 10 9 19.28 (16.8)* 11.0.3* 5.1 2021.1 20.7 12.0 11.0
Lambda-Capture und Speicherklassen-Spezifizierer von strukturierten Bindungen P1091R3
P1381R1
10 8 (partiell)
16
19.11**
19.24**
16.0.0* 5.1 2021.1 20.7 12.0
Konvertierungen zu Arrays unbekannter Größe erlauben P0388R4 10 14 19.27* 14.0.0* 6.0 2021.5 20.11 12.0
constexpr Containeroperationen  (FTM)* P0784R7 10 10 19.28 (16.9)* 12.0.0* 6.0 2021.5 20.11 12.0 11.0
Einige Verwendungen von volatile als veraltet markiert P1152R4 10 10 19.27* 12.0.0* 6.0 2021.5 20.11 12.0 11.0
constinit  (FTM)* P1143R2 10 10 19.29 (16.10)* 12.0.0* 6.1 2021.7 20.11 12.0 11.0
Komma-Operator in Indizes als veraltet markiert P1161R3 10 9 19.25* 11.0.3* 6.0 2021.7 20.11 12.0 11.0
[[nodiscard]] mit Nachricht P1301R4 10 9 19.25* 11.0.3* 6.0 2021.5 20.11 12.0 11.0
Triviale Standardinitialisierung in constexpr Funktionen P1331R2 10 10 19.27* 12.0.0* 6.1 2021.7 20.11 12.0 11.0
Nicht ausgewertete asm-Deklarationen in constexpr Funktionen P1668R1 10 10 19.28 (16.9)* 12.0.0* 6.1 2021.7 20.11 12.0 11.0
using enum  (FTM)* P1099R5 11 13 19.24* 13.1.6* 6.3 2023.1 22.5 12.0
Synthetisieren von Drei-Wege-Vergleichen für eine angegebene Vergleichskategorie P1186R3 11 10 19.24* 12.0.0* 6.0 2021.5 20.11 12.0 11.0
DR17: [[nodiscard]] für Konstruktoren P1771R1 10 9 19.24* 11.0.3* 6.0 2021.5 20.11 12.0 11.0
Class-Template-Argument-Deduktion für Alias-Templates  (FTM)* P1814R0 10 19 19.27* 6.5 23.9 12.0
Class-Template-Argument-Deduktion für Aggregate  (FTM)* P1816R0
P2082R1
10*
11*
17 19.27* 6.3 2023.1 (partiell)*
2024.1
23.3 12.0
DR11: Impliziter Move für mehr lokale Objekte und Rvalue-Referenzen P1825R0 11* 13 19.24* 13.1.6* 6.0 2021.5 20.11 12.0
Vergleiche per Wert erlauben P1946R0 10 10 19.25* 12.0.0* 6.1 2021.7 20.11 12.0 11.0
Entfernen von std::weak_equality und std::strong_equality P1959R0 10 10 19.25* 12.0.0* 6.1 2021.7 20.11 12.0 11.0
Inkonsistenzen bei Nicht-Typ-Template-Parametern  (FTM)* P1907R1 10 (partiell)
11
18 (partiell)* 19.26* 13.1.6* (partiell) 6.2 2023.1 (partiell) 21.3 12.0
DR98: Pseudo-Destruktoren beenden Objektlebensdauern P0593R6 11 11 Ja 12.0.5* N/A 2023.1* Ja 12.0 11.0
DR11: Konvertierung von T* zu bool sollte als Verengung betrachtet werden P1957R2 10*
11*
11 19.27* 12.0.5* 6.1 12.0 11.0
 

C++20 Feature
 

Papier(e)
GCC
Clang
MSVC
Apple Clang
EDG eccp
Intel C++
Nvidia HPC C++ (ehem. PGI)*
Nvidia nvcc
Cray

[bearbeiten] C++20 Bibliotheksfeatures

C++20 Feature

 
Papier(e)

 
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*
std::endian  (FTM)* P0463R1 8 7 19.22* 10.0.0*
Erweiterung von std::make_shared() zur Unterstützung von Arrays  (FTM)* P0674R1 12 15 19.27* 14.0.3*
Gleitkomma-Atomics  (FTM)* P0020R6 10 18 19.22* 16.0.0*
Synchronisierte Puffer (std::basic_osyncstream)  (FTM)* P0053R7 11 18 19.29 (16.10)*
constexpr für <algorithm> und <utility>  (FTM)* P0202R3 10 8 (partiell)
12
19.26* 10.0.1* (partiell)
13.0.0*
Mehr constexpr für <complex>  (FTM)* P0415R1 9 7 (teilweise)
16
19.27* 10.0.0* (teilweise)
15.0.0*
Machen Sie std::memory_order zu einer ámbito-gebundenen Enumeration P0439R0 9 9 19.25* 11.0.3*
String Präfix- und Suffixprüfung: string(_view) ::starts_with / ends_with  (FTM)* P0457R2 9 6 19.21* 10.0.0*
Bibliotheksunterstützung für operator<=> <compare>  (FTM)* P0768R1 10 7 (teilweise)
12 (teilweise)*
17
19.20* (teilweise)
19.28 (16.9)*
13.0.0*
std::remove_cvref  (FTM)* P0550R2 9 6 19.20* 10.0.0*
[[nodiscard]] in der Standardbibliothek P0600R1 9 7 (teilweise)
16
19.13* (teilweise)
19.22*
10.0.0* (teilweise)
15.0.0*
Verwendung von std::move in numerischen Algorithmen P0616R0 9 12 19.23* 13.0.0*
Hilfsfunktion zur Konvertierung eines Zeigers in einen rohen Zeiger  (FTM)* P0653R2 8 6 19.22* Ja
Atomare std::shared_ptr und std::weak_ptr  (FTM)* P0718R2 12 19.27*
std::span  (FTM)* P0122R7 10 7 19.26* 10.0.0*
Kalender und Zeitzonen  (FTM)* P0355R7 11 (teilweise)*
13 (partiell)*
14
7 (teilweise)
19 (teilweise)*
19.29 (16.10)* 10.0.0* (teilweise)
<version> P0754R2 9 7 19.22* 10.0.0*
Vergleich von Unordered-Containern P0809R0 Ja Ja 16.0* Ja
ConstexprIterator-Anforderungen  (FTM)*  (FTM)* P0858R0 9 12 19.11* 13.0.0*
std::basic_string::reserve() sollte nicht schrumpfen P0966R1 11 8 19.25* 10.0.1*
Atomares Vergleichen und Austauschen mit Padding-Bits P0528R3 13 19.28 (16.8)*
std::atomic_ref  (FTM)* P0019R8 10 19 19.28 (16.8)*
contains()-Memberfunktion von assoziativen Containern, z.B. std::map::contains() P0458R2 9 13 19.21* 13.1.6*
DR11: Garantierte Kopier-Elision für stückweise Konstruktion P0475R1 9 Ja 19.29 (16.10)* Ja
std::bit_cast()  (FTM)* P0476R2 11 14 19.27* 14.0.3*
Ganzzahlige Operationen mit Zweierpotenzen

std::bit_ceil(), std::bit_floor(), std::bit_width(), std::has_single_bit()  (FTM)*

P0556R3
P1956R1
9*
10*
9*
12*
19.25**
19.27**
19.28 (16.8)*
11.0.3**
13.0.0**
Verbesserung des Rückgabewerts von erase-ähnlichen Algorithmen  (FTM)* P0646R1 9 10 19.21* 12.0.0*
std::destroying_delete_t  (FTM)* P0722R3 9 9 19.27* 11.0.3*
std::is_convertible  (FTM)* P0758R1 9 9 19.23* 11.0.3*
Hinzufügen von std::shift_left/right zu <algorithm>  (FTM)* P0769R2 10 12 19.21* 13.0.0*
Constexpr für std::swap() und swap-bezogene Funktionen P0879R0 10 13 19.26* 13.1.6*
std::type_identity  (FTM)* P0887R1 9 8 19.21* 10.0.1*
Concepts-Bibliothek  (FTM)* P0898R3 10 13 19.23* 13.1.6*
constexpr Vergleichsoperatoren für std::array P1023R0 10 8 19.27* 10.0.1*
std::unwrap_ref_decay und std::unwrap_reference  (FTM)* P0318R1 9 8 19.21* 10.0.1*
std::bind_front()  (FTM)* P0356R5 9 13 19.25* 13.1.6*
std::reference_wrapper für unvollständige Typen P0357R3 9 8 19.26* 10.0.1*
Korrektur von operator>>(basic_istream&, CharT*) P0487R1 11 8 19.23* 10.0.1*
Bibliotheksunterstützung für char8_t  (FTM)* P0482R6 9 8 (partiell)
16
19.22* 10.0.1* (partiell)
15.0.0*
Hilfsfunktionen zur Implementierung von uses-allocator-Konstruktion P0591R4 9 16 19.29 (16.10)* 15.0.0*
DR17: std::variant und std::optional sollten Kopier-/Verschiebungs-Trivialität propagieren P0602R4 8.3 8 19.11* 10.0.1*
DR17: Ein sinnvoller konvertierender Konstruktor für std::variant P0608R3 10 9 19.29 (16.10)**
19.42**
11.0.3*
std::functions move-Konstruktor sollte noexcept sein P0771R1 7.2 6 19.22* Ja
Der Ein Ranges Vorschlag  (FTM)* P0896R4 10 13 (teilweise)
15*
19.29 (16.10)* 14.0.3*
Heterogene Suche für unordered assoziative Container  (FTM)* P0919R3
P1690R1
11 12 19.23* (P0919R3)
19.25* (P1690R1)
13.0.0*
<chrono> zero(), min() und max() sollten noexcept sein P0972R0 9 8 19.14* 10.0.1*
constexpr in std::pointer_traits  (FTM)* P1006R1 9 8 19.26* 10.0.1*
std::assume_aligned()  (FTM)* P1007R3 9*
11
15 19.28 (16.9)* 14.0.3*
Erstellung von Smart Pointern mit Standardinitialisierung (z.B. make_unique_for_overwrite)  (FTM)* P1020R1
P1973R1
11*
12*
16 19.28 (16.9)* 15.0.0*
Verschiedene constexpr Bits  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)* P1032R1 10 13 19.28 (16.8)* 13.1.6*
Entfernen von Vergleichsoperatoren von std::span P1085R2 10 8 19.26* 10.0.1*
Konsistente Zustandsorientierte Alloziator-Propagierung für operator+(basic_string) P1165R1 10 15 19.26* 14.0.3*
Konsistentes Container-Löschen, z.B. std::erase(std::vector), oder std::erase_if(std::map)  (FTM)* P1209R0
P1115R3
9*
10*
8*
11*
19.25**
19.27**
10.0.1**
12.0.5**
Standardbibliotheks-Header-Einheiten P1502R1 11 19.29 (16.10)*
polymorphic_allocator<> als Vokabulartyp  (FTM)* P0339R6 9 16 19.28 (16.9)* 15.0.0*
std::execution::unseq  (FTM)* P1001R2 9 17 19.28 (16.8)*
std::lerp() und std::midpoint()  (FTM)* P0811R3 9 9 19.23* (teilweise)
19.28 (16.8)*
11.0.3*
Usability-Verbesserungen für std::span P1024R3 10 9*
14
19.26* 11.0.3*
DR17: Machen Sie std::create_directory() intuitiv P1164R1 8.3 12 19.20* 13.0.0*
std::ssize() und vorzeichenlose Ausdehnung für std::span  (FTM)* P1227R2 10 9 19.25* 11.0.3*
Traits für (un)begrenzte Arrays  (FTM)* P1357R1 9 9 19.25* 11.0.3*
std::to_array()  (FTM)* P0325R4 10 10 19.25* 12.0.0*
Effizienter Zugriff auf den Puffer von std::basic_stringbuf P0408R7 11 17 19.29 (16.10)* 15.0.0*
Layout-Kompatibilität und Zeiger-Interkonvertibilität-Traits  (FTM)*  (FTM)* P0466R5 12 19.29 (16.10)**
Bit-Operationen: std::

rotl(), rotr(), countl_zero(), countl_one(), countr_zero(), countr_one(), popcount()  (FTM)*

P0553R4 9 9 19.25**
19.28 (16.8)*
11.0.3*
Mathematische Konstanten  (FTM)* P0631R8 10 11 19.25* 12.0.5*
Textformatierung  (FTM)* P0645R10 13 14**
17
19.29 (16.10)* 15.0.0*
std::stop_token und std::jthread  (FTM)* P0660R10 10 17
(teilweise)*

20*
19.28 (16.9)*
constexpr std::allocator und verwandte Hilfsfunktionen  (FTM)* P0784R7 10 12 19.29 (16.10)* 13.0.0*
constexpr std::string  (FTM)* P0426R1
P1032R1
P0980R1
12 15 19.29 (16.10)*
19.30**
14.0.3*
constexpr std::vector  (FTM)* P1004R2 12 15 19.29 (16.10)*
19.30**
14.0.3*
Input-Range-Adaptoren P1035R7 10 16 19.29 (16.10)* 15.0.0*
constexpr std::invoke() und verwandte Hilfsfunktionen P1065R2 10 12 19.28 (16.8)* 13.0.0*
Atomares Warten und Benachrichtigen, std::counting_semaphore, std::latch und std::barrier  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)*  (FTM)* P1135R6 11 11 19.28 (16.9)* 13.1.6*
std::source_location  (FTM)* P1208R6 11 15*
(partiell)
16
19.29 (16.10)* 15.0.0*
Hinzufügen von <=> zur Standardbibliothek P1614R2 10 14*
(partiell)
17*
(partiell)
19
19.29 (16.10)* 13.1.6* (partiell)
constexpr Standardkonstruktor von std::atomic und std::atomic_flag  (FTM)* P0883R2 10 13 19.26* 13.1.6*
constexpr für numerische Algorithmen  (FTM)* P1645R1 10 12 19.26* 13.0.0*
Sichere Ganzzahlvergleiche  (FTM)* P0586R2 10 13 19.27* 13.1.6*
 

C++20 Feature
 

Papier(e)
GCC libstdc++
Clang libc++
MSVC STL
Apple Clang*

[bearbeiten] Ältere Standards

[bearbeiten] Siehe auch

Feature-Testing (C++20) Eine Reihe von Präprozessor-Makros zum Testen der entsprechenden C++-Sprach- und Bibliotheks-Features.
C Dokumentation für Compiler-Unterstützung