Item 7: Why Not Specialize Function Templates?
条款7:为什么不特化函数模板?
For more information, see Explicit Specialization of Function Templates.
有关更多信息,请参见函数模板的显式专用化。
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.
这种方法的可移植性比xslt模板的稍微差点,但是您可以将该函数用作样式表中其它表达式的一部分。
These templates are designed to be customizable, provided that the basic attribute structure and function are not altered.
这些模板被设计为可定制,但是基本属性结构和功能不能更改。
A word processor provides spell checking, formatting, and document templates that function as "containers" for requirements.
字处理器提供了拼写检查、格式化和作为需求“容器”的文档模板。
A future release of Application Server will enable this function by supplying the required V5 templates and runtime changes.
ApplicationServer的后继版本将通过提供所需的版本5的模板和运行时变更来开启该功能。
You can use Boost static assertions in a class, function, or namespace scope; you can also use them with templates.
您可以在类、函数或命名空间范围中使用Boost静态断言;还可以与模板一起使用它们。
Therefore, the only function of the Container JSP templates is to start the rendering of the children. The control JSP template renders the portlets in the following way
因此,容器JSP模板的唯一功能是启动子组件的处理。
These templates are crucial for the pipeline to function properly.
要使管道正常工作,这些模板是至关重要的。
Listing 22 includes a template with the position function placed in the template's match expression rather than in the XSL: apply-templates statement.
清单22包含一个模板,其中position函数放置在模板的match表达式而不是xsl:apply - templates语句中。
We use XSL: apply-templates on the results of the function, and display each software item in the template that matches on Statement, as shown in Listing 4.
如清单4所示,我们根据函数的结果使用xsl: apply -templates,并且显示模板内每个在Statement上匹配的软件项。
In the next example, the position function is used in the predicate for the XSL: apply-templates statement, which selects names that have a position of 1.
在下一个例子中,position函数用在xsl:apply - templates语句的谓词中,选择具有位置1的名称。
Fortunately through the use of graph templates, it is not necessary to understand the function of each field to create graphs for your network.
有幸的是,通过使用图形模板,不必要明白每个字段的功能,就可为你的网络创建图形。
Parameter ranges of the deformable templates are limited in the rectangle of feature location, and energy function minimum corresponds to the best position of facial feature.
在特征定位的矩形框内限定变形模板的参数范围,当能量函数达到最小值时对应变形模板匹配的最佳位置。
Masters can also be placed in the background to function as templates.
模块也可被放在后台作为模版工作。
A more common formula of templates used in image smooth denoising is developed from Gauss function in order to offer more templates to be chosen when denoising images with random noise.
利用高斯函数得到了图象平滑去除随机噪声中使用的平滑模板的一个较普遍的公式。该公式为图象平滑去除噪声提供了多种模板选择。
Templates let us write a single class or function definition that can be used on a variety of types.
使用模板可以编写一个类定义或函数定义,而用于多个不同的数据类型。
Use this to dynamically register prefilters to run templates through before they are compiled. See template prefilters for more information on how to setup a prefiltering function.
注册一个在模板编译之前执行的预过滤器。如何设立预过滤函数,请查看模板预过滤器。
See template resources for more information on how to setup a function for fetching templates.
关于如何建立一个函数取出模板,请看模板资源部分。
See template resources for more information on how to setup a function for fetching templates.
关于如何建立一个函数取出模板,请看模板资源部分。
应用推荐