Feature Testing
Explore which compiler implements which feature.
The header <version>
allows you to ask your compiler for its C++11 or later support. You can ask for attributes, features of the core language, or the library. <version>
has about 200 macros defined, which expand to a number when the feature is implemented. The number stands for the year and the month in which the feature was added to the C++ standard. These are the numbers for static_assert
, lambdas, and concepts.
Get hands-on with 1400+ tech skills courses.