Namespaces
Variants
Views
Actions

Experimental C++ Features

From cppreference.com
< cpp
Revision as of 05:19, 23 May 2024 by Space Mission (Talk | contribs)

The C++ standards committee publishes experimental C++ language and library extensions for future standardization.

Note: until 2012, these publications used the TR (technical report) format. Since 2012 ISO procedure changed to use the TS (technical specification) format.

TR/TS specifications

ISO number Name Status Links
ISO/IEC TR 18015:2006 Technical Report on C++ Performance Published 2006 (ISO store).

Draft: TR18015 (2006-02-15).

ISO/IEC TR 19768:2007 Technical Report on C++ Library Extensions Published 2007-11-15 (ISO store).

Draft: N1836 (2005-06-24)
ISO 29124 split off, the rest merged into C++11.

ISO/IEC 29124:2010 Extensions to the C++ Library to support mathematical special functions Published 2010-09-03 (ISO Store).

Final draft: N3060 (2010-03-06).
Merged into C++17.

Special functions
ISO/IEC TR 24733:2011 Extensions for the programming language C++ to support decimal floating-point arithmetic Published 2011-10-25 (ISO Store)

Draft: N2849 (2009-03-06).
May be superseded by a future TS or merged into a future revision of C++ (most recent merge proposal was N3871).

ISO/IEC TS 18822:2015 C++ File System Technical Specification Published 2015-06-18 (ISO store). Final draft: N4100 (2014-07-04).

Merged into C++17.

Filesystem
ISO/IEC TS 19570:2015 C++ Extensions for Parallelism Published 2015-06-24. (ISO Store). Final draft: N4507 (2015-05-05).

Merged into C++17.

Parallelism
ISO/IEC TS 19841:2015 Transactional Memory TS Published 2015-09-16, (ISO Store). Final draft: N4514 (2015-05-08). Transactional memory
ISO/IEC TS 19568:2015 C++ Extensions for Library Fundamentals Published 2015-09-30, (ISO Store). Final draft: N4480 (2015-04-07).

Merged into C++17 except for invocation traits.

Library extensions
ISO/IEC TS 19217:2015 C++ Extensions for Concepts Published 2015-11-13 (ISO Store). Final draft: N4553 (2015-10-02). Current draft: P0734R0 (2017-07-14).

Merged into C++20 (with modifications).

Constraints and concepts
ISO/IEC TS 19571:2016 C++ Extensions for Concurrency Published 2016-01-19 (ISO Store). Final draft: P0159R0 (2015-10-22).

Partially merged into C++20.

Concurrency
ISO/IEC TS 19568:2017 C++ Extensions for Library Fundamentals, Version 2 Published 2017-03-30 (ISO Store). Draft: N4617 (2016-11-28).

Partially merged into C++17 and C++20.

Library extensions 2
ISO/IEC TS 21425:2017 Ranges TS Published 2017-12-05 (ISO Store). Draft: N4685 (2017-07-31).

Merged into C++20.

Ranges
ISO/IEC TS 22277:2017 Coroutines TS Published 2017-12-05 (ISO Store). Draft N4736 (2018-03-31). Latest draft: N4775 (2018-10-07).

Merged into C++20.

ISO/IEC TS 19216:2018 Networking TS Published 2018-04-24 (ISO Store). Draft N4734 (2017-04-04). Latest draft: N4771 (2018-10-08). Networking
ISO/IEC TS 21544:2018 Modules TS Published 2018-05-16 (ISO Store). Final Draft N4720 (2018-01-29).

Merged into C++20.

ISO/IEC TS 19570:2018 Parallelism TS Version 2 Published 2018-11-15 (ISO Store). Final draft: N4793 (2018-11-26). See also non-TS std::simd proposals below.

Post-publication draft: N4808 (2019-03-11).

Parallelism 2
ISO/IEC TS 23619:2021 Reflection TS Published 2021-10-11 (ISO store). Draft N4856 (2020-03-02). See also non-TS proposals below. Reflection
Numerics Early development. Draft P1889R1 (2019-12-27).
ISO/IEC AWI TS 9922 Concurrency TS Version 2 Early development: N4956 (2023-07-05). Concurrency 2
ISO/IEC AWI TS 19568 C++ Extensions for Library Fundamentals, Version 3 Early development. Draft N4948 (2023-05-08). Library extensions 3
ISO/IEC DTS 12907 Transactional Memory TS, Version 2 Early development: N4923 (2022-10-14).
ISO/IEC NP 19569 Array Extensions TS × Withdrawn. Abandoned draft: N3820 (2013-10-10).

Non-TS proposals

Name Status Links
Linear Algebra Now targeting mainline standard P1673R13 (2023-11-10), P1674R2 (2022-05-15), P1385R7 (2022-10-15).

Merged into C++26 (P1673R12).

std::execution Forwarded to LWG, wording in progress. Proposal P2300R9 (2024-04-02). See also:
  • System execution context - P2079R3 (2022-07-15),
  • Sender-Receiver Interface for Networking - P2762R2 (2023-10-12),
  • Member customization points for Senders and Receivers - P2855R1 (2024-02-22),
  • An Event Model for C++ Executors - P2882R0 (2023-05-11),
  • Sender Algorithm Customization - P2999R3 (2023-12-13),
  • std::execution introduction - P3090R0 (2024-02-14),
  • A plan for std::execution for C++26 - P3109R0 (2024-02-12),
  • Improving diagnostics for Sender expressions - P3164R0 (2024-03-01).
  • Reconsidering the std::execution::on algorithm - P3175R2 (2024-05-22).
Execution
Pattern Matching Early development. Draft P1371R3 (2020-09-15). See also:
  • Pattern Matching using is and as - P2392R2 (2022-09-24),
  • Pattern Matching: match expression - P2688R1 (2024-02-15),
  • switch for Pattern Matching - P2940R0 (2022-04-18),
  • Identifiers for Pattern Matching - P2941R0 (2022-02-24),
  • A Postcondition is a Pattern Match - P3210R1 (2024-04-20)
Reflection The main document (ISO/IEC TS 23619:2021) is described in Reflection TS above. See also:
  • Scalable Reflection in C++ - P1240R2 (2022-01-14)
  • Python Bindings with Value-Based Reflection - P2911R1 (2023-10-13)
  • Reflection for C++26 - P2996R3 (2024-05-22)
  • Using Reflection to Replace a Metalanguage for Generating JS Bindings - P3010R0 (2023-10-13)
  • ABI comparison with reflection - P3095R0 (2024-02-15)
  • Function Parameter Reflection in Reflection for C++26 - P3096R1 (2024-05-15)
  • Generative Extensions for Reflection - P3157R1 (2024-05-22)
Reflection
std::simd The main document (TS ISO/IEC 19570:2018) is described in "C++ Extensions for Parallelism V2" above. See also: Data parallel types
Contracts Early development. Proposal P2659R2 (2022-11-30). Draft P2660R0 (2022-10-14). See also:
  • A Proposal to Publish a Technical Specification for Contracts - P2659R2 (2022-12-05),
  • Miscellaneous amendments to the Contracts TS - P2661R0 (2022-10-15),
  • Contracts for C++: Prioritizing Safety - P2680R1 (2022-12-15),
  • A proposed plan for contracts in C++ - P2695R1 (2023-02-09),
  • Proposal of Condition-centric Contracts Syntax - P2737R0 (2022-12-30),
  • Contracts for C++: Prioritizing Safety - Presentation slides - P2743R0 (2022-12-13),
  • Evaluation of Checked Contracts - P2751R1 (2023-02-14),
  • A Bold Plan for a Complete Contracts Facility - P2755R1 (2024-04-11),
  • The idea behind the contracts MVP - P2817R0 (2023-03-05),
  • Proposal of Contracts Supporting Const-On-Definition Style - P2829R0 (2023-04-13),
  • Contract violation handling semantics for the contracts MVP - P2852R0 (2023-04-24),
  • The Lakos Rule: Narrow Contracts and noexcept Are Inherently Incompatible - P2861R0 (2023-05-19),
  • Requirements for a Contracts syntax - P2885R3 (2023-10-05),
  • Contracts on lambdas - P2890R2 (2023-12-13),
  • Constant evaluation of Contracts - P2894R2 (2024-01-11),
  • Outstanding design questions for the Contracts MVP - P2896R0 (2023-08-22),
  • Contracts for C++ - P2900R7 (2024-05-22),
  • A Principled Approach to Open Design Questions for Contracts - P2932R3 (2024-01-16),
  • An Attribute-Like Syntax for Contracts - P2935R4 (2023-11-05),
  • Contracts must avoid disclosing sensitive information - P2947R0 (2023-07-20),
  • Slides for P2861R0: Narrow Contracts and noexcept are Inherently Incompatible - P2949R0 (2023-07-14),
  • Contracts and virtual functions for the Contracts MVP - P2954R0 (2023-08-03),
  • Contracts and coroutines - P2957R1 (2024-01-13),
  • A natural syntax for Contracts - P2961R2 (2023-11-08),
  • An Overview of Syntax Choices for Contracts - P3028R0 (2023-11-05),
  • Protection against modifications in contracts - P3071R1 (2023-12-17),
  • Remove evaluation_undefined_behavior and will_continue from the Contracts MVP - P3073R0 (2024-01-27),
  • Should ignore and observe exist for constant evaluation of contracts? - P3079R0 (2024-01-11),
  • Contracts for C++: Support for virtual functions - P3097R0 (2024-04-15),
  • Tokyo Technical Fixes to Contracts - P3119R1 (2024-05-09),
  • Contracts on virtual functions for the Contracts MVP - P3165R0 (2024-02-27),
  • Inherited contracts - P3169R0 (2024-04-14),
  • Contract testing support - P3183R1 (2024-05-22),
  • Slides for LEWG presentation of P2900R6: Contracts for C++ - P3189R0 (2024-03-19),
  • Slides for EWG presentation of D2900R7: Contracts for C++ - P3190R0 (2024-03-20),
  • A response to the Tokyo EWG polls on the Contracts MVP (P2900R6) - P3197R0 (2024-04-12),
  • A takeaway from the Tokyo LEWG meeting on Contracts MVP - P3198R0 (2024-03-29),
  • Contracts for C++: Naming the Louis semantic - P3226R0 (2024-04-12),
  • Contracts for C++: Revisiting contract check elision and duplication - P3228R1 (2024-05-21).
std::inplace_vector Early development. Draft P0843R12 (2024-05-21). See also:
  • A direction for Vector - P3147R1 (2024-03-18)
  • An allocator-aware std::inplace_vector - P3160R1 (2024-03-09)
2D Graphics Early development. Draft P0267R10 (2019-10-07).

See also

C documentation for Experimental C features