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]

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 for std::basic_string and std::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

  1. "Working Draft, Standard for Programming Language C ++" (PDF). 2020-12-15.
  2. Dusíková, Hana (2019-11-06). "N4817: 2020 Prague Meeting Invitation and Information" (PDF). Retrieved 2020-02-13.
  3. Voutilainen, Ville (2019-11-25). "To boldly suggest an overall plan for C++23". www.open-std.org. Retrieved 2020-02-13.
  4. "Evolving C++ remotely".
  5. Sutter, Herb (29 July 2020). "Business Plan and Convener's Report: ISO/IEC JTC1/SC22/WG21 (C++)" (PDF).
  6. "Upcoming Meetings, Past Meetings".
  7. Ranns, Nina (2020-11-19). "WG21 2020-11 Virtual Meeting: Minutes of Meeting" (PDF).
  8. JeanHeyd Meneide; Rein Halbersma (2019-11-24). "Literal Suffix for (signed) size_t".
  9. Wim Leflere; Paul Fee (2020-06-13). "string contains function".
  10. Alexey Gorgurov; Antony Polukhin (2020-09-16). "A Proposal to add stacktrace library".
  11. Juan Alday (2020-10-12). "A proposal for a type trait to detect scoped enumerations" (PDF).
  12. Hans-J. Boehm (2020-10-23). "P0943R6: Support C atomics in C++".
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.