Chapter 4
Generic Programming and Templates
Section 7
Variadic Templates
A parameter pack is a template parameter that can accept zero or more template arguments. A parameter pack is declared by appending … to the type of the template parameter. A template that has a parameter pack is called a variadic template, since it is a template that accepts a varying number of parameters. When instantiating a variadic template, any number of arguments can be provided to the parameter pack by separating them with a comma.