What are the different versions (standards) of C++?

StandardMain additions
C++98 / 03Templates, STL, exceptions, namespaces
C++11auto, lambdas, nullptr, move semantics, smart pointers, range for
C++14Generic lambdas, make_unique
C++17Structured bindings, optional, variant, string_view, filesystem
C++20Concepts, ranges, modules, coroutines, std::format
C++23std::print, std::expected

You choose the version with a compiler flag, like -std=c++23. A newer one (C++26) is in the approval process. See C++ History and Versions.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.