Meta programming: Variadic templates

code

Syntax

 

  • 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.

Leave a comment

Your email address will not be published.