Does static object in a template function have linkage?
静态对象在函数模板有联系吗?
Use this to dynamically register template function plugins.
使用此函式可以动态注册外挂样版函式。
A template function GetMul with template type arguments and a return type as well.
模板函数GetMul,它使用模板类型的参数,还有返回类型。
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.
动态注销一个模板函数插件,参数是模板函数的名称。
Make sure to follow the documentation for a template tag carefully, and place your parameters in the order the template function expects.
要确定仔细地遵循了模板标签的文件说明,并且将你的参数按模板函数要求排列。
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.
若要解决C2299,请不要使复制构造函数或赋值运算符成为模板函数,而使其成为采用类类型的非模板函数。
It then calls the friend function spacefriend and passes the class object address as its argument, and calls the template function, beginning with integer types and then floating data types.
然后,调用友元函数spacefriend并将类对象的地址作为其参数传递。然后调用template函数,先使用整数类型,然后使用浮点数据类型。
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.
一个非常重要的问题是询问模板函数,这些形式上的模板参数会被类型集合正确的取代,而不仅仅是STL算法。
If a query has a function template in a predicate or a select list, the function template must be part of the materialized query table.
如果查询在谓词或选择列表中具有一个函数模板,那么该函数模板必须是物化查询表的一部分。
In addition, the template adds simple logging to each function by printing out to the command line the name of the function called.
此外,所调用的函数的名称将输出到命令行,通过这种方式,模板即可为各函数添加简单的日志。
Each function template has an associated object template.
每个函数模板都有一个关联的对象模板。
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)对表达式模板进行聚合,产生一个查询。
Figure 6 shows the issues to consider in determining when a function template needs to be registered.
图6展示了在决定何时需要注册函数模板时所考虑的问题。
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.
但是只能通过递归模板或者扩展函数来完成其他两种常见的操作:求最大值和最小值。
When a query references a function template, the query optimizer tries to generate a feasible plan that allows this function reference to be evaluated on the remote data source.
当一个查询引用一个函数模板时,查询优化器尝试生成一个灵活的计划,允许在远程数据源上计算这个函数引用。
Allowing a template class or function to be instantiated with only certain data types.
允许模板类或函数仅使用某些数据类型来进行实例化。
The template in Listing 16 customizes the data created in the announcement_block function.
清单16中的模板对announcement _ block函数中创建的数据进行定制。
The function gets the attributes from the template as an array named params that is passed to json_encode , which returns a json representation of the PHP associative array.
这个函数会从模板中获取一个名为params的数组属性,同时被传递到json_encode,这个函数会返回json表示的php数组。
A template file, ending with.tpl.php, USES an array of data passed to it by its associated function or module.
模板文件以.tpl . php结尾,它使用相关联的函数或模块传递给它的一个数据数组。
This logic is contained within the announcement_block function so that the proper number of announcements are passed to this template.
这一逻辑包含在announcement _ block函数中,所以只向这个模板传递适当数量的公告。
And, because every function in the Student controller touches the template view, you need to load the URL Helper as part of the Student constructor (see Listing 14).
并且,由于Student控制器内的每个函数都会接触到模板视图,所以需要加载urlHelper,作为Student构造函数的一部分(参见清单14)。
The newFunction() method shown in Listing 6 returns an object that implements the Function interface (see the source template in Listing 5)
清单6显示的newFunction()方法将返回一个对象,它将实现Function接口(参见 清单5中的源代码模板)
I defined a new function called createbook that builds the book object and is invoked by the template with each book.
我定义了一个新的名为createbook的函数,该函数构建book对象,并由用于每本书的模板调用。
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.
但是调用命名模板需要更多的XSLT指令,调用函数则更紧凑而且很容易嵌入到XPath表达式中。
Since all the logic is now in the text_line PostScript function, the line template itself is trivial-each element translates directly into a call to the text_line PostScript function.
由于所有的逻辑现在都在text_linePostScript函数中,因此line模板本身变得微不足道—每个元素都直接转换为对text_line PostScript函数的调用。
The sprintf function contains a template of the runmqsc command into which values are substituted.
sprintf函数包含一个runmqsc命令模板,上述值将替换模板中的值。
In the case of the strings, I use a custom function called js: escape , which is defined just before the template.
对于字符串,我使用名为js:escape的定制函数,它在模板之前定义。
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.
使用模板也能做到这一点,但是通过这种新语法可以声明在XPath中使用的函数,而且方便得多。
If there is some special function specific to a data source and not available on WebSphere Information Integrator, you need a function template definition for that function.
如果存在特定于某个数据源的、在WebSphereInformation Integrator上没有的特殊函数,则需要那个函数的函数模板定义。
应用推荐