模板函数总是用完全参数化的类型指定的。
Template functions are always specified with fully parameterized types.
模板函数GetMul,它使用模板类型的参数,还有返回类型。
A template function GetMul with template type arguments and a return type as well.
如果要在不同的对象上使用一个模板函数,这一点就会显得十分有用。
This can turn out to be useful if you want to use a template function on different objects.
动态注销一个模板函数插件,参数是模板函数的名称。
Use this to dynamically unregister template function plugin. Pass in the template function name.
当使用与基类虚函数相同的名称进行声明时,成员模板函数不能是虚函数并且不能从基类重写虚函数。
Member template functions cannot be virtual functions and cannot override virtual functions from a base class when they are declared with the same name as a base class virtual function.
若要解决C2299,请不要使复制构造函数或赋值运算符成为模板函数,而使其成为采用类类型的非模板函数。
To resolve C2299, do not make the copy constructor or assignment operator a template function, but rather a non-template function that takes a class type.
我们以此为例说明如何在模板文件中使用不同的数据对象和辅助函数。
We include it as an example of how to use different data objects and helper functions within a template file.
使用模板作为函数也破坏了模板名称空间。
Having templates act as functions also pollutes the template namespace.
同样,其它对已命名对象(如模板和外部函数)的引用通常可以静态解析。
Similarly, other references to named objects such as templates and external functions can often be resolved statically.
允许模板类或函数仅使用某些数据类型来进行实例化。
Allowing a template class or function to be instantiated with only certain data types.
图6展示了在决定何时需要注册函数模板时所考虑的问题。
Figure 6 shows the issues to consider in determining when a function template needs to be registered.
但是只能通过递归模板或者扩展函数来完成其他两种常见的操作:求最大值和最小值。
But, you can only accomplish two other popular operations on a set of Numbers, finding the minimum and maximum, by a recursive template or extension function.
跳过导入与函数,查看模板末端,看看需要修改什么地方来适应您的项目。
Skipping the imports and functions, look at the bottom of the template and what you need to change to suit your project.
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
下面的代码提供了一个为全局对象创建模板并且设置全局函数的例子。
The following code provides an example of creating a template for the global object and setting the built-in global functions.
您可以使用该项目模板来定义多个CLR存储过程和函数。
You can use this project template to define multiple CLR stored procedures and functions.
MQT中不包含函数模板会导致在运行查询并选择MQT来满足查询时出现“statementnot supported ”错误。
Not including the function template in the MQT may lead to a "statement not supported" error when the query is run and the MQT is chosen to satisfy the query.
PHPTemplate 允许将特定的文件(称为模板文件)映射到Drupal中的特定函数和模块。
PHPTemplate allows you to map specific files, called template files, to specific functions and modules within Drupal.
但是调用命名模板需要更多的XSLT指令,调用函数则更紧凑而且很容易嵌入到XPath表达式中。
However, to call a named template requires more XSLT instructions, while to call a function is more compact and can easily be embedded in an XPath expression.
对于这些函数,exslt作者已经提供了可以导入到现有样式表的XSLT模板。
For these functions, the EXSLT authors have provided XSLT templates that may be imported into existing style sheets.
使用模板也能做到这一点,但是通过这种新语法可以声明在XPath中使用的函数,而且方便得多。
I could have done this with a template, but with this new syntax I can declare a function that can be used in XPath, which is much more convenient.
在任何大型项目中,都有一些模板不能转换成函数,这常常是因为要创建绑定。
In any large project, there are inevitably templates to follow which cannot be reduced to functions, usually because of the bindings being created.
要编写一个定制的库,需要使用libprint . c和libprint . h的模板,然后编写相应的函数。
To write a custom library you just have to use the templates of libprint.c and libprint.h and then write the appropriate functions.
这种方法的可移植性比xslt模板的稍微差点,但是您可以将该函数用作样式表中其它表达式的一部分。
This approach is a little less portable than XSLT templates, but you can use the function as part of other expressions in your style sheets.
下面的函数也可以选择性地指定模板变量。
The following functions can also optionally assign template variables.
标准库中的模板,类,函数和对象具有外部连接(3.5)。
The templates, classes, functions, and objects in the library have external linkage (3.5).
先使用度量的聚合列表中的第一个聚合函数(在这个示例中是SUM)对表达式模板进行聚合,产生一个查询。
Start by generating the query using the first aggregation function (SUM in the example) in the measure's list of aggregations to aggregate the template expression.
先使用度量的聚合列表中的第一个聚合函数(在这个示例中是SUM)对表达式模板进行聚合,产生一个查询。
Start by generating the query using the first aggregation function (SUM in the example) in the measure's list of aggregations to aggregate the template expression.
应用推荐