如何从参数包创建数组?
template<typename T, typename... Tpack>
void covert(Tpack ...pack){
T *arr = new T[???]; //TODO: how to get Tpack size?
// TODO: how to fill array?
}
如何从参数包创建数组?
template<typename T, typename... Tpack>
void covert(Tpack ...pack){
T *arr = new T[???]; //TODO: how to get Tpack size?
// TODO: how to fill array?
}