C++ 11 vs C++ 14 vs C++ 17
Last Updated :
02 Nov, 2023
Improve
C++ is a cross-platform language used to create high-performance applications, has user-friendly syntax, rich libraries, and fast speed. The language was updated to 3 versions namely C++11, C++14, and C++17 respectively. The technical highlights of each of the versions are listed below:
C++ 11:
- Unified Initialization
- Multithreading
- Smart Pointers
- Hash Tables
- std::array container
- Move semantics
- Lambda functions included
- auto and decltype added
C++ 14:
- Generalized Lambdas
- Reader-Writer Locks
- constexpr included
- Return type deductions extended to all functions
C++ 17:
- The file system library and Network concepts included
- Improved Lambdas
- Fold Expressions included
- Initializers in if and switch statements
- Concurrent and Parallel algorithms in Standard Template Library(STL)
- Nested Namespaces
- Transactional memory
- Inline Variables
- Optional header file
- Class Template argument deduction(CTAD)