Per the most recent c++ lang spec, there are three types of parameter pack : template parameter, function parameter, and init-capture pack. In the following code
template<typename ...T>
void fun(T...t)
{
};
Which one is the function parameter pack : T in "typename ...T", or, T or t in "T...t" ? Many thanks!!!
Aucun commentaire:
Enregistrer un commentaire