C++26
Материал из cppreference.com
< cpp
Это следующая версия стандарта C++.
См.: The current IS schedule for C++26 (2024-05-14).
| Этот раздел не завершён |
Новые языковые возможности
| Этот раздел не завершён |
Новые возможности библиотеки
| Этот раздел не завершён |
Новые модули
| Этот раздел не завершён |
Новые заголовки
C совместимые заголовки:
Отчеты о дефектах
| Этот раздел не завершён |
Поддержка компиляторами
Основная статья: C++26 compiler support
C++26 core language features
| Возможность C++26 |
Статья(и) |
GCC |
Clang |
MSVC |
Apple Clang |
EDG eccp |
Intel C++ |
IBM XL C++ |
IBM Open XL C++ для AIX |
IBM Open XL C++ для z/OS |
Sun/Oracle C++ |
Embarcadero C++ Builder |
Cray |
Nvidia HPC C++ (бывшая PGI)* |
Nvidia nvcc |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Removing UB in lexical process | P2621R2 | |||||||||||||||
| Making non-encodable string literals ill-formed | P1854R4 | |||||||||||||||
| Unevaluated strings | P2361R6 | |||||||||||||||
Adding @, $, and ` to the basic character set
|
P2558R2 | |||||||||||||||
constexpr cast from void*
|
P2738R1 | |||||||||||||||
| On the ignorability of standard attributes | P2552R2 | |||||||||||||||
| Static storage for braced initializers | P2752R2 | |||||||||||||||
| User-generated static_assert messages | P2741R2 | |||||||||||||||
| A nice placeholder with no name | P2169R4 |
| ||||||||||||||
| C++26 возможность |
Страница(цы) |
GCC |
Clang |
MSVC |
Apple Clang |
EDG eccp |
Intel C++ |
IBM XL C++ |
IBM Open XL C++ для AIX |
IBM Open XL C++ для z/OS |
Sun/Oracle C++ |
Embarcadero C++ Builder |
Cray |
Nvidia HPC C++ (бывшая PGI)* |
Nvidia nvcc |
C++26 library features
| C++26 возможность |
Страница(цы) |
GCC libstdc++ |
Clang libc++ |
MSVC STL |
Apple Clang* |
IBM Open XL C/C++ для AIX* |
Sun/Oracle C++* |
Embarcadero C++ Builder* |
|
|---|---|---|---|---|---|---|---|---|---|
| Testing for success or failure of <charconv> functions | P2497R0 | ||||||||
| std::text_encoding: text encodings identification | P1885R12 | ||||||||
| Arithmetic overloads of std::to_string and std::to_wstring use std::format | P2587R3 | ||||||||
| Type checking format args | P2757R3 | ||||||||
| Formatting pointers | P2510R3 | ||||||||
| Hashing support for std::chrono value classes | P2592R3 | ||||||||
| Read-copy update (RCU) | P2545R4 | ||||||||
| Hazard pointers | P2530R3 | ||||||||
| ADL-proof std::projected | P2538R1 | ||||||||
| constexpr stable sorting | P2562R1 | ||||||||
| Member visit | P2637R3 | ||||||||
| std::is_within_lifetime in constant evaluation | P2641R4 | ||||||||
| Extending associative containers with the remaining heterogeneous overloads | P2363R5 | ||||||||
| Enabling the use of std::weak_ptr as keys in unordered associative containers | P1901R2 | ||||||||
| Native handles in file streams | P1759R6 | ||||||||
| Interfacing string streams with std::string_view | P2495R3 | ||||||||
| Interfacing std::bitset with std::string_view | P2697R1 | ||||||||
| More constexpr for <cmath> and <complex> | P1383R2 | ||||||||
| Adding the new 2022 SI prefixes on ratios: std::quecto, std::ronto, std::ronna, and std::quetta | P2734R0 | ||||||||
| std::function_ref: type-erased callable reference | P0792R14 | ||||||||
| std::copyable_function | P2548R6 | ||||||||
| std::bind_front, std::bind_back, and std::not_fn to NTTP callables | P2714R1 | ||||||||
| std::submdspan() | P2630R4 | ||||||||
| C++26 возможность |
Страница(цы) |
GCC libstdc++ |
Clang libc++ |
MSVC STL |
Apple Clang* |
IBM Open XL C/C++ для AIX* |
Sun/Oracle C++* |
Embarcadero C++ Builder* |
* - наведите курсор на ячейку, отмеченную звёздочкой *, чтобы увидеть дополнительные всплывающие подсказки.
DRnn - число nn после "DR" обозначает целевую ревизию C++, к которой применяется отчёт о дефектах, например, DR20 → C++20.