Class Template Argument Deduction

Instantiating a class template before C++17

Before C++17, template argument deduction only worked for functions but not classes. This meant that when a class template had to be instantiated, all the template arguments had to be supplied. The following snippet shows several examples:

Get hands-on with 1200+ tech skills courses.