From Jason Turner
Watch on YouTube

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.

Resources

Tags