From Jason Turner
Watch on YouTube

Summary

Jason explores C++20's Class Non-Type Template Parameters (CNTTP), showing how they enable the use of compile-time known values in contexts where only constant expressions are allowed. He demonstrates how CNTTP extends the capabilities of template parameter values beyond the traditional integral types, allowing user-defined types to be used as non-type template parameters. The episode highlights the syntax differences between compile-time template parameters (in angle brackets) and runtime parameters (in parentheses), while also noting compiler support limitations at the time of recording.

Resources

Tags