Namespaces
Variants
Views
Actions

Talk:cpp/language/parameter pack

From cppreference.com

According to the syntax, the example is invalid. The syntax is missing "typename... name" in addition to "class... name".

You're right, thank you for bringing it up. This page needs work. --Cubbi 05:31, 5 March 2013 (PST)

[edit] Parameter packs with "non-type parameters"

Are they allowed? if yes, how are they defined & used? --84.144.43.9 14:12, 3 December 2014 (PST)

Yes of course, this page calls it "1) A non-type template parameter pack with an optional name". Very common use case is std::integer_sequence --Cubbi (talk) 14:38, 3 December 2014 (PST)