C++20/C++23 features
Creator
username could not be found
Allows attributes to have namespaces.
std::mdspan provides a view over multi-dimensional arrays.
Improvements to string handling.
jthread is a thread class that automatically joins on destruction.
constexpr new and delete allow dynamic memory allocation at compile time.
std::format provides a type-safe and extensible way to format data.
Features can be conditionally compiled based on compiler support using feature test macros.
Template parameter lists can now use abbreviated syntax in some contexts.
std::barrier is a synchronization primitive that allows multiple threads to wait until all threads have reached a certain point.
The ability to label the closing brace of a block with the construct it closes.
Allows specifying that a parameter is an alias.
#warning and #error can now be used with preprocessor expressions.
Synchronized output streams provide thread-safe output.
Bit-fields can now have a specified type.
Allows the compiler to elide copies even when side effects are present.
Deducing this allows deducing the type of the object the member function is being called on.
Coroutines enable writing asynchronous code in a sequential manner, improving readability and maintainability.
Modules improve build times and code organization by replacing header files.
Enhancements to support reflection capabilities in C++.
std::latch is a synchronization primitive that allows one or more threads to block until a counter reaches zero.
Support for stack traces, which can be useful for debugging.
The spaceship operator (<=>) allows comparing two objects and returns one of the std::strong_ordering, std::weak_ordering, or std::partial_ordering values.
Source location provides a way to capture the file name, line number, and function name of the current location in the code.
The standard library now includes support for calendar and timezone operations.
constinit variables are initialized at compile time or during static initialization, avoiding dynamic initialization.
Ranges provide a way to work with sequences of data in a more declarative and composable way.
Concepts provide a way to specify requirements on template arguments, enabling better error messages and generic code.
consteval functions must produce a value at compile time.
char8_t is a character type for UTF-8 encoded characters.
Designated initializers allow initializing struct/class members by name, improving code clarity.
if consteval allows branching based on whether the code is being executed in a consteval context.
Atomic smart pointers provide atomic operations on shared_ptr and unique_ptr.
constexpr algorithms provide compile-time evaluation of standard algorithms.
std::span provides a non-owning view over a contiguous sequence of elements.
[[likely]] and [[unlikely]] attributes provide hints to the compiler for branch prediction.