Declaring Non-Type Template Parameters With auto
This lesson teaches you how C++ 17 uses auto for deducing non-type template parameters.
This is another part of the strategy to use auto
everywhere. With C++11
and C++14
you can use
it to deduce variables or even return types automatically, plus there are also generic lambdas. Now
you can also use it for deduci​ng non-type template parameters.
For example:
Get hands-on with 1400+ tech skills courses.