• You can also use the template parameter T for an attribute’s type, in the same way as it was used for the method’s return type.

    您也可以使用模板参数T来定义一个属性类型,用同样的方式它也可以用作定义该种方式的回转类型。

    youdao

  • For example, the template might perform a value comparison on an incoming parameter against a value of a known type.

    比如,模板可能需要用接收的参数和已知类型的值进行值比较。

    youdao

  • Figure 6. Creating a template parameter of type integer.

    图6.创建一个整数类型的模板参数。

    youdao

  • With this option, the keyword typename is generated for every template parameter of type class.

    通过这一选项,关键字typename被生成用来类类型的每一个模板参数。

    youdao

  • Figure 5. Creating a template parameter of type class.

    图5.创建一个类类型的模板参数。

    youdao

  • To make this template even safer, I data type the parameter as follows.

    为了使这个模板更加安全,我按照如下方法确定了参数的数据类型。

    youdao

  • As the element will be created at a later stage, when we apply Asset 1, we add another template parameter called "marshaller" of type "class" (Figures 15 and 16).

    当在后期应用资产1创建元素时,我们添加类型“类”的另一个模版参数,名为“marshaller ”(图15和16)。

    youdao

  • Add a method called get with return type as the template parameter t from the method (as shown in Figure 4), and an input parameter named index whose type is int.

    添加一个名为get的方法。在此方法中,使其返回类型为模板参数t(如图4所示),然后输入参数名字index,其类型为int。

    youdao

  • You must explicitly add the template type parameters to the template class name when using it as a template parameter in a base class list.

    当要将某个模板类型参数用作基类列表中的模板参数时,必须显式地将该模板类型参数添加到模板类名中。

    youdao

  • 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

  • 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

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定