I want make a class template like below:
'template < typename... Args > class VectorTuple;'
by example, "VectorTuple < long, double, string >" will instanced as " std::tuple < vector < long >, vector < double > , vector < string > > ".
I am not familiar to variadic-templates. The worst method is to copy code from < tuple > and modify it. Is there an easy way to just directly use std::tuple to define my VectorTuple.
Aucun commentaire:
Enregistrer un commentaire