Skip to content

C++14

C++14 (ISO/IEC 14882:2014) is an incremental update to C++11, primarily completing the "unfinished business" from C++11 rather than introducing entirely new programming paradigms.

Core Features

FeatureDescription
Generic LambdaLambda parameters can use auto
Return Type DeductionFunctions can omit trailing return types
Variable Templatestemplate<typename T> constexpr T pi = T(3.14159...);
Binary Literals0b1010 syntax
Digit Separators1'000'000 for improved readability
std::make_uniqueFills the missing factory function from C++11
std::exchangeGeneric swap-and-return operation
std::shared_timed_mutexShared mutex with timeout support

Positioning

The mission of C++14 is to make C++11's design more pleasant to use. Generic lambdas and return type deduction make "writing generic code" more concise, but do not change the fundamental paradigm established by C++11.

Compiler Support

CompilerFull Support Version
GCC5.1+
Clang3.4+
MSVCVS 2017 (15.0)+

Further Reading

Released under the MIT License