Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of type deduction in C++14 through this comprehensive CppNow conference talk. Delve into various methods of naming types, including auto, auto &, auto const &, auto &&, decltype(auto), and decltype(some-expression). Learn how C++14 extends type deduction to function return types and discover when to leverage this powerful feature versus being more explicit. Examine the potential for new library designs enabled by these features, as well as associated risks. Gain insights on creating modern C++ libraries that effectively utilize type deduction without compromising readability. Cover topics such as value categories, reducing redundancy, casts, pushback and inplace back operations, auto variables, template type deduction, member functions, reference collapsing, and standard common types. Access accompanying slides for a comprehensive understanding of type deduction in C++14.
Syllabus
Introduction
Type Deduction
Types in C
Value Categories
AutoRef
Reducing Redundancy
Dont Repeat Yourself
Casts
Pushback and Inplace Back
One Argument vs Multiple Arguments
Pushback in Placeback
Auto Variables
Type Deduction vs Syntax
Return Type Deduction
Template Type Deduction
Member Functions
Type
I Will
Example
Reference collapsing
RefRef
Make Array
Make Type
Standard Common Type
Taught by
CppNow