Skip to content

Glossary: C++ Beyond the Basics

Class template argument deduction

Also written: CTAD

The compiler working out a class template's type arguments from the constructor arguments, so `std::vector v{1, 2};` is a `std::vector<int>`.

Where the book teaches it

Related terms

Template argument deductionClass template