C++20 Lambda expressions, Non-type template parameters, Constraints and Concepts

Gajendra Gulgulia
17 min readApr 1, 2023

In this article I will explain how to write a class and fuction template declaration which uses functions and lambda expressions as non-type template parameter.

Function as Non-Type-Template-Parameter ( NTTP henceforth) looks like below in class and function template as of C++17.

template<auto…

--

--