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

    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

  • 可以可以变量指明数据类型输入参数来自函数返回用户自定义函数以及模板

    You are also able to specify data types for variables, input parameters, return values from functions, user-defined functions and templates.

    youdao

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

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

    youdao

  • 利用2.0数据类型敏感特性,传入参数可能需要转换特定类型以便模板使用

    With the heightened awareness of data types in 2.0, incoming parameters might need to be cast into a particular type in order to be useful in the template.

    youdao

  • 6.创建一个整数类型模板参数

    Figure 6. Creating a template parameter of type integer.

    youdao

  • 通过一选项关键typename生成用来类型每一个模板参数

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

    youdao

  • 5.创建一个类型模板参数

    Figure 5. Creating a template parameter of type class.

    youdao

  • 转换提供了一个选项类型模板参数生成替换class关键字。

    The transformation also provides an option to generate the keyword in place of class for template parameters of type class.

    youdao

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

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

    youdao

  • 建立一个绑定类型模板并将其命名为ShelvesList通过设定参数tShelf经其List联系起来。

    Create a template binding class named ShelvesList with a binding to the List class by setting the parameter t to Shelf.

    youdao

  • 如何定义具有数量可变参数(每个参数类型可能不同)的模板函数

    How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?

    youdao

  • 可以使用模板参数T定义一个属性类型同样方式可以用作定义该种方式回转类型

    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.

    youdao

  • 一个非常重要问题询问模板函数这些形式上模板参数类型集合正确取代,而不仅仅STL算法

    One very important question to ask about any template function, not just about STL algorithms, is what the set of types is that may correctly be substituted for the formal template parameters.

    youdao

  • 模板函数总是完全参数类型指定的。

    Template functions are always specified with fully parameterized types.

    youdao

  • 使用模板返回类型参数类型函数

    Function with template return or argument type.

    youdao

  • 实例化一个模板,不完整参数类型成员应该可见吗?

    When instantiating a template, should members of its incomplete argument types be visible?

    youdao

  • getSignatureInstance()方法实际构建新的泛型模板然后参数类型具体列表实例这些模板

    The getSignatureInstance() method is what actually builds new generic class templates and then instantiates these templates for specific lists of parameter types.

    youdao

  • 模板函数GetMul,它使用模板类型参数,还有返回类型

    A template function GetMul with template type arguments and a return type as well.

    youdao

  • 首先调用f模板版本第一参数类型字符串作为大小可变参数提供字符精度值。

    The first time around, the templated version of f is called, with a string as the first argument type, and the character and double are packed off as the variable size argument.

    youdao

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

    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.

    youdao

  • 可以模板定义组件类型或者你可以使用组件标注定义组件类型参数组件产生一个实例变量

    You can define the type of component inside template, or you can create an instance variable for the component and use the component annotation to define the component type and parameters.

    youdao

  • 本来想要更强模板参数静态类型检验

    He would have liked stronger static type checking of template arguments.

    youdao

  • 合成模板接受个可调用类型或者mpl序列作为第一模板参数是否安全

    Is it safe to have the synthesis templates take a callable builtin type or an MPL sequence as the first template argument?

    youdao

  • 合成模板接受个可调用类型或者mpl序列作为第一模板参数是否安全

    Is it safe to have the synthesis templates take a callable builtin type or an MPL sequence as the first template argument?

    youdao

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

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

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