...

/

Feature Testing

Feature Testing

Explore which compiler implements which feature.

We'll cover the following...

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.

Press + to interact
__cpp_static_assert 200410L
__cpp_lambdas 200907L
__cpp_concepts 201907L

🔑 Feature support

When I experiment ...