Meta programming: Variadic templates



  • Variadic templates essentially allow recursion to be replaced by iteration
  • Variadic templates needs an end function – usually it’s a specialization for the last remaining parameter, in order to stop the recursion. This has changed in C++17 and is no longer needed.

You may also like...

Leave a Reply