Deduce iterator type in function template?
推导了函数模板的迭代器类型?
Each function template has an associated object template.
每个函数模板都有一个关联的对象模板。
A function template is like an extension to a user-defined function.
函数模板就像是用户定义函数的一个扩展。
Default arguments are not allowed on an explicit specialization of a function template.
不允许在函数模板的显式专用化上使用默认参数。
Figure 6 shows the issues to consider in determining when a function template needs to be registered.
图6展示了在决定何时需要注册函数模板时所考虑的问题。
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.
如果查询在谓词或选择列表中具有一个函数模板,那么该函数模板必须是物化查询表的一部分。
Binary search function template and test procedures, it can find ways to implement binary search, the party returns-1 lookup failed!
二分查找函数模板及测试程序,它能实现查找方式中的二分查找,党查找失败时返回- 1 !
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.
MQT中不包含函数模板会导致在运行查询并选择MQT来满足查询时出现“statementnot supported ”错误。
Normally static assertions when used inside a class or function template, will not be instantiated until the template in which it is used is instantiated.
通常静态断言在类或模板函数中使用时,模板实例后,静态断言才能在实例的模板中实例。
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上没有的特殊函数,则需要那个函数的函数模板定义。
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 specialization might be ambiguous because template argument deduction might associate the specialization with more than one of the overloaded definitions .
在使用函数模板时,如果你定义了多个重载的特例化函数,可能导致模糊不清的调用,所以这时编译器会从中选择最特例的那个函数定义来调用。
This can turn out to be useful if you want to use a template function on different objects.
如果要在不同的对象上使用一个模板函数,这一点就会显得十分有用。
In addition, the template adds simple logging to each function by printing out to the command line the name of the function called.
此外,所调用的函数的名称将输出到命令行,通过这种方式,模板即可为各函数添加简单的日志。
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)对表达式模板进行聚合,产生一个查询。
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.
但是只能通过递归模板或者扩展函数来完成其他两种常见的操作:求最大值和最小值。
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算法。
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数组。
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命令模板,上述值将替换模板中的值。
The sprintf function contains a template of the runmqsc command into which values are substituted.
sprintf函数包含一个runmqsc命令模板,上述值将替换模板中的值。
应用推荐