最后但同样重要的一点是模板参数。
这里显示了使用模板参数定义的类。
It shows the classes that are defined with the template parameters.
这些模板参数和以前一样没有被抛弃。
图5.创建一个类类型的模板参数。
图6.创建一个整数类型的模板参数。
您也需要创建一个用到该模板参数的方法。
You will also need to create a method that USES the template parameter.
有可能使用·函数模板参数吗?
Is it possible to use a lamba function for a template parameter?
页面布局覆盖模板参数的选项。
已链接的模式模板参数在图31 中高亮显示。
The linked pattern template parameter appears highlighted in Figure 31.
代码模板参数使用的方式与模式模板参数很相似。
Code template parameters are used in a manner similar to the pattern template parameters.
逐步执行向导并为每个模式模板参数填入需要的值。
Step through the wizard and enter the requested values for each individual pattern template parameter.
改进了面包加载模板参数在BDC模块。
Improvements have been made to the bread-load template parameters in the BDC module.
为什么使用常数表达式作为一个模板参数?
在样式表中大量使用全局变量或模板参数作为通信工具。
Heavily using global variables or template parameters as communication vehicles within the stylesheet.
他本来想要更强的模板参数的静态类型检验。
He would have liked stronger static type checking of template arguments.
该占位符类可以通过将模板参数t与模板参数X绑定来实例化。
This placeholder class should represent the instantiation of List by binding the template parameter t to the template parameter of X.
如何使用一个通用的函数的指针作为一个模板参数?
How to use a general function pointer as a template parameter?
将模板参数和实际值的绑定结果添加到静态结构图中。
Adds the result of a binding between a template's parameters and actual values to your Static Structure diagram.
不能将非专用化的类模板用作基类列表中的模板参数。
An unspecialized class template cannot be used as a template argument in a base class list.
比如我不支持对模板参数约束检查提供直接语言支持的想法。
For example, I don't support ideas of direct language support for template argument constraints checking.
将非专用化的模板类名用作基类列表中的模板参数是无效的。
It is invalid to use an unspecialized template class name as a template parameter in a base class list.
一个增强的用户界面,您可以使用它来选择一个模板参数值以提高实用性。
An enhanced user interface that you can use to select a template parameter value to improve usability.
通过这一选项,关键字typename被生成用来类类型的每一个模板参数。
With this option, the keyword typename is generated for every template parameter of type class.
该转换还提供了一个选项来为类类型的模板参数生成替换class 的关键字。
The transformation also provides an option to generate the keyword in place of class for template parameters of type class.
代码模板通常用来在方法中放置逻辑,可以选择是否依赖XDE模式中所定义的模板参数。
Code templates are used to put logic into methods, and may or may not depend on template parameters defined within a XDE pattern.
进行了UG二次开发技术研究;建立了模板参数化模型、模板参数驱动机制;
Researched software development techniques based on UG, and established mould board parametric model and parametric drive mechanism.
让合成模板接受一个可调用内建类型或者一个mpl序列作为第一个模板参数是否安全?
Is it safe to have the synthesis templates take a callable builtin type or an MPL sequence as the first template argument?
像以前一样运行Pattern向导,创建已命名模式绑定(使用从模板参数中派生的唯一名称)。
Run the pattern wizard as before, and create named pattern bindings (use unique names derived from some of the template parameters).
模板函数的函数域中使用这个宏,当模板参数需要检查时,宏的使用是是具有代表性的。
The macro is typically used at function scope inside template functions, when the template arguments need checking.
您也可以使用模板参数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.
应用推荐