An Overview of C++11/14, Part I
summary
Survey lists concrete language changes and shows code that compiles: uses auto and decltype for return types, rvalue references and move semantics for performance, and variadic templates to implement sum/average at compile time. Demo replaces manual iterator typedefs with non‑member begin/end, uses nullptr, range‑for, static_assert, conditional noexcept, extern template to cut object bloat, and constexpr enhancements in C++14. Slides and source materials live at https://github.com/CppCon/CppCon2014 and the examples are tested and runnable.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:43About the Code Examples
- 2:35ISO C++ Timeline
- 7:16Problem: Wordy declarations
- 15:29Problem: What's the Return Type?
- 16:24decltype and Trailing Return Type
- 21:57Problem: Null Pointers
- 25:10Generalized Function Return Type Deduction in C++14
- 27:57Improvement: Range-Based for Loop
- 30:50Compile-Time Assertions: static_assert
- 36:53The Failed Solution: export
- 39:00Problem: Dynamic Exception Specifications
- 43:29Problem: How Do You Write a Function to Average N Values?
- 45:21Variadic Templates
- 55:53Template Alias
- 58:33Inline Namespaces
related talks
52mExploring C++17 and beyond
01h 02mC++20 - My Favorite Code Examples
01h 00mC++ Concepts and Ranges
01h 03mUnlocking the value of C++20
01h 00mC++23: An Overview of Almost All New and Updated Features
01h 23mC++23 Standard Library Preview
58mUnderstanding and Mastering C++'s Complexity
01h 30m50 shades of C++
