C++17: The Language Features
summary
C++17 collects concrete changes: structured bindings let functions, pairs and arrays unpack into named variables; if and switch gain an init-statement for scoped temporaries; class templates get argument deduction (with deduction guides when needed); fold expressions and constexpr if simplify variadic templates; inline variables remove one-translation-unit globals; copy elision becomes mandatory so returning temporaries works without move/copy constructors. GCC/Clang already implement most of these, while bigger items like modules and concepts miss the release.
AI-written summary · about
chapters (16)
- 0:00Start
- 4:08Online Compilers
- 5:20Modules
- 7:43Structured Bindings
- 12:16Lock Guards
- 15:40Class Templates
- 21:12Shared Pointer
- 22:11Deduction Guides
- 25:17Recursion
- 26:55Fold Expressions
- 32:55Aggregates That Can Derive from Other Aggregates
- 34:43Optimisation of Return Values
- 43:12Expression Evaluation Order
- 50:12Utf-8 Character Literals
- 52:00Bug Fixes
- 57:14Template Constructor Destruction








