template argument
模板参数:在编程语言中
常用释义
英式发音
美式发音
基本释义
- 模板参数:在编程语言中,模板参数是一种用于定义通用类或函数的参数,它允许程序员在编写代码时使用不同的数据类型。
例句
-
1·The compiler cannot determine a template argument.编译器无法确定模板参数。
-
2·Default arguments cannot be used to deduce a template argument.无法使用默认参数推导出模板参数。
-
3·The generic or template argument does not match the generic or template declaration.泛型或模板参数与泛型或模板声明不匹配。
-
4·An unspecialized class template cannot be used as a template argument in a base class list.不能将非专用化的类模板用作基类列表中的模板参数。
-
5·For example, I don't support ideas of direct language support for template argument constraints checking.比如我不支持对模板参数约束检查提供直接语言支持的想法。
-
6·Is it safe to have the synthesis templates take a callable builtin type or an MPL sequence as the first template argument?让合成模板接受一个可调用内建类型或者一个mpl序列作为第一个模板参数是否安全?
-
7·The standardese way of looking at things is simply that the value you supply as a template argument must be a constant known at compile time.standardese看待事物的方式是,您提供作为一个模板参数的值必须在编译时是已知常数。
-
8·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.相反的,一个非类型模板实参是模板里的常量,所以任何试图修改它的行为都是错误的。
-
9·A function template specialization might be ambiguous because template argument deduction might associate the specialization with more than one of the overloaded definitions .在使用函数模板时,如果你定义了多个重载的特例化函数,可能导致模糊不清的调用,所以这时编译器会从中选择最特例的那个函数定义来调用。
-
10·Though Steichen didn't invent fashion photography, an argument can be made that he created the template for the modern fashion photographer.尽管史泰钦没有发明时尚摄影,但可以说他为现代时尚摄影师们创造了模板。