Library feature-test macros (since C++20)
From cppreference.com
Each of following macros is defined if the header <version> or one of the corresponding headers specified in the table is included.
[edit] Notes
Each value in "Value" column follows the pattern: "yyyymmL", where "yyyy" is a year, and "mm" is a month when the corresponding feature-set was accepted for standardization. Some values where increased since the time of their introduction, if capabilities of given feature where extended. The table above contains only the most recent values (that is, taken from the latest C++ language draft standard). A full set of values, including the initial and intermediate ones, can be found in this table.
[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 4126 | C++20 C++23 |
some feature-test macros for fully freestanding features were not freestanding |
they are also freestanding |
[edit] See also
Feature testing (C++20) | A set of preprocessor macros to test the corresponding to C++ language and library features |
C++ documentation for Headers required for a freestanding implementation
| |
C++ documentation for Predefined Macro Symbols
|