C++23
C++23 is the informal name for the revision of the ISO/IEC standard for the C++ programming language expected to follow C++20. The current draft is N4878.[1]
C++ language revisions |
---|
In February 2020, at the final meeting for C++20 in Prague, an overall plan for C++23 was adopted:[2][3]
Planned features for C++23 are library support for coroutines, a modular standard library, executors, and networking.
The first WG21 meeting focused on C++23 was intended to take place in Varna in early June 2020, but was cancelled due to the COVID-19 pandemic,[4][5] as was the November 2020 meeting in New York[6][5] and the February 2021 meeting in Kona, Hawaii.[6] It is unlikely that there will be any face-to-face meeting before 2022.[7]
New features
In the absence of face-to-face WG21 meetings, few new features have so far been added to the C++23 draft. But the following were added after the virtual WG21 meeting of 9 November 2020, where they were approved by straw polls:[7]
- Literal suffixes for
std::size_t
and the corresponding signed type[8] - A member function
contains
forstd::basic_string
andstd::basic_string_view
, to check whether or not the string contains a given substring or character[9] - A stacktrace library (
<stacktrace>
), based on Boost.Stacktrace[10] - A type trait
std::is_scoped_enum
[11] - The header
<stdatomic.h>
, for interoperability with C atomics[12]
References
- "Working Draft, Standard for Programming Language C ++" (PDF). 2020-12-15.
- Dusíková, Hana (2019-11-06). "N4817: 2020 Prague Meeting Invitation and Information" (PDF). Retrieved 2020-02-13.
- Voutilainen, Ville (2019-11-25). "To boldly suggest an overall plan for C++23". www.open-std.org. Retrieved 2020-02-13.
- "Evolving C++ remotely".
- Sutter, Herb (29 July 2020). "Business Plan and Convener's Report: ISO/IEC JTC1/SC22/WG21 (C++)" (PDF).
- "Upcoming Meetings, Past Meetings".
- Ranns, Nina (2020-11-19). "WG21 2020-11 Virtual Meeting: Minutes of Meeting" (PDF).
- JeanHeyd Meneide; Rein Halbersma (2019-11-24). "Literal Suffix for (signed) size_t".
- Wim Leflere; Paul Fee (2020-06-13). "string contains function".
- Alexey Gorgurov; Antony Polukhin (2020-09-16). "A Proposal to add stacktrace library".
- Juan Alday (2020-10-12). "A proposal for a type trait to detect scoped enumerations" (PDF).
- Hans-J. Boehm (2020-10-23). "P0943R6: Support C atomics in C++".