Does static object in a template function have linkage?
静态对象在函数模板有联系吗?
Why my template function is not a valid match in this call?
为什么我的模板功能是不是在这个呼叫的有效匹配?
Use this to dynamically register template function plugins.
使用此函式可以动态注册外挂样版函式。
At the time of this writing, there is only one template function.
写这个的时候,只有一个模板函数。
A template function GetMul with template type arguments and a return type as well.
模板函数GetMul,它使用模板类型的参数,还有返回类型。
Is it possible to make a template function friend to a template Specialization Class?
有可能使一个模板函数的朋友一个专门化类模板吗?
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.
每个函数模板都有一个关联的对象模板。
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.
当一个查询引用一个函数模板时,查询优化器尝试生成一个灵活的计划,允许在远程数据源上计算这个函数引用。
A function template is like an extension to a user-defined function.
函数模板就像是用户定义函数的一个扩展。
Hence, a template system must separate form from function, yet also bridge the divide.
因此,模板系统必须将表单与函数分离,但还必须在两者之间建立联系。
Function with template return or argument type.
使用模板返回类型或参数类型的函数。
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结尾,它使用相关联的函数或模块传递给它的一个数据数组。
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中的源代码模板)
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命令模板,上述值将替换模板中的值。
应用推荐