模板和函数template <typename x>
1 |
|
多个参数模板template <typename x, typename y>
1 |
|
输出结果
1 | typeof(x):i |
结构体和模板
1 |
|
输出结果
1 | (0, 1) |
常数模版template <int x>
1 |
|
输出结果
1 | 3, 2, 1 |
转载请注明来源 https://tianweiye.github.io