template <typename... Args>struct Test;
template <typename First, typename... Rest>
struct Test<First, Rest...>
{
Test()
{
int a = 0;
}
};
template <typename Last>
struct Test<Last>
{
Test()
{
int a = 0;
}
};
template <>
struct Test<float>
{
Test()
{
int a = 0;
}
};
//使用
Test<int, int> c;
Test<float> c1;