Summary
This episode explores the combination of Class Template Argument Deduction (CTAD) with Non-Type Template Parameters (NTTP) in C++. Jason explains how CTAD allows compilers to deduce template arguments for class templates (introduced in C++17), while NTTPs are compile-time values passed as template parameters. When combined, these features enable powerful compile-time programming techniques, such as passing arrays of compile-time constants to template functions without explicitly specifying their types.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[temp.arg.type]72% match -
[temp.arg.explicit]65% match -
[temp.arg]62% match -
[temp.explicit]62% match -
[temp.arg.template]62% match -
[temp.class]59% match -
[temp.deduct.general]59% match -
[temp.deduct.guide]58% match -
[temp.fct]57% match -
[temp.over.link]56% match - + 17 more related sections