January 2020
Intermediate to advanced
454 pages
11h 25m
English
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.