Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Type Deduction in C++14

CppNow via YouTube

Overview

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

Reviews

Start your review of Type Deduction in C++14

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.