今日C++无用冷知识两则:
1. 以下两种写法是合法且等价的:
2. 下面的模板函数定义是合法的;
它等价于:
1. 以下两种写法是合法且等价的:
typedef int i32;
int typedef i32;
2. 下面的模板函数定义是合法的;
template <typename ...T>
void test(T......) {}
它等价于:
template <typename ...T>
void test(T..., ...) {}