Skip to Content
Advanced C++ Programming Cookbook
book

Advanced C++ Programming Cookbook

by Dr. Rian Quinn
January 2020
Intermediate to advanced
454 pages
11h 25m
English
Packt Publishing
Content preview from Advanced C++ Programming Cookbook

A Closer Look at Type Deduction

In this chapter, you will learn all of the ins and outs of type deduction in C++, including some of the new additions in C++17. This chapter is important as it will teach you all of the ways in which the compiler will attempt to deduce type information automatically for you. Without a firm understanding of how type deduction works in C++, it is possible to create code that doesn't work as expected, especially when using auto and template programming. The knowledge gained from this chapter will provide you with the skills to properly leverage type deduction in your own applications.

The recipes in this chapter are as follows:

  • Using auto and type deduction
  • Learning how decltype type deduction rules work
  • Working ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern C++ Programming Cookbook

Modern C++ Programming Cookbook

Marius Bancila

Publisher Resources

ISBN: 9781838559915Supplemental Content