类模板A取得一个类型参数T,并且它还有一个类型为int的参数,一个非类型参数(non-type parameter),与类型参数相比,虽然非类型参数不是很通用,但他们是完全合法的。
基于44个网页-相关网页
non-type template parameter 非类型模板参数
non-type parameter
实参数
以上为机器翻译结果,长、整句建议使用 人工翻译 。
Conversely, a non type template argument is a constant within the template so that an attempt to change the value of a parameter is an error.
相反的,一个非类型模板实参是模板里的常量,所以任何试图修改它的行为都是错误的。
youdao
应用推荐
模块上移
模块下移
不移动