K
Kenshin
Seems to me like the only way to write functions/classes taking
variadic templates is by recursion. Is that true? Can the below work,
for iteration?
template<class… T>
auto func(const T&… t){
std::initializer_list<?> ilist = {t…}; //what should go here <?>//
for(const auto& arg : ilist)
//use arg//
}
variadic templates is by recursion. Is that true? Can the below work,
for iteration?
template<class… T>
auto func(const T&… t){
std::initializer_list<?> ilist = {t…}; //what should go here <?>//
for(const auto& arg : ilist)
//use arg//
}