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

Leveraging template class type deduction in C++17

In this recipe, we will learn how class type deduction works with class templates in C++17. This recipe is important as C++17 added the ability to deduce the type of a template class from its constructor, which reduces both the verbosity and redundancy of your code.

The knowledge gained from this recipe will provide you with the ability to write C++ classes that properly deduce their types from the class constructor without the need for explicit type declarations.

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