在声明模板时,我习惯使用这种代码:
template <class T>
但在这个问题中,他们使用了:
template <unsigned int N>
我查看它编译.但是这是什么意思?它是非类型参数吗?如果是这样,我们怎么能有一个没有任何类型参数的模板?
c++ templates
c++ ×1
templates ×1