0

Is there a way of traversing a parameter pack in variadic templates without necessarily having to use recursion?

14th Jun 2020, 10:30 PM
Anthony Maina
Anthony Maina - avatar
3 Answers
+ 3
From what I can see BroFar is correct. They usually seem to be associated with a base case function that the "args" are passed to within the template pack function. Unless you knew the exact number of times, or number of args, you had to call the other function, then I don't really see how else you'd use them. That of course would make the purpose of a variadic parameter pack pointless though. Maybe somebody else has more experience with them and a different understanding.
15th Jun 2020, 12:20 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
not really Anthony Maina
15th Jun 2020, 12:08 AM
BroFar
BroFar - avatar