模板函数总是用完全参数化的类型指定的。
Template functions are always specified with fully parameterized types.
写这个的时候,只有一个模板函数。
At the time of this writing, there is only one template function.
什么是模板函数挥发性类型推断错了吗?
What is wrong with a volatile type deduction in template functions?
有可能使一个模板函数的朋友一个专门化类模板吗?
Is it possible to make a template function friend to a template Specialization Class?
动态注销一个模板函数插件,参数是模板函数的名称。
Use this to dynamically unregister template function plugin. Pass in the template function name.
模板函数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.
要确定仔细地遵循了模板标签的文件说明,并且将你的参数按模板函数要求排列。
Make sure to follow the documentation for a template tag carefully, and place your parameters in the order the template function expects.
模板函数的函数域中使用这个宏,当模板参数需要检查时,宏的使用是是具有代表性的。
The macro is typically used at function scope inside template functions, when the template arguments need checking.
通常静态断言在类或模板函数中使用时,模板实例后,静态断言才能在实例的模板中实例。
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.
一个非常重要的问题是询问模板函数,这些形式上的模板参数会被类型集合正确的取代,而不仅仅是STL算法。
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.
若要解决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.
您可以使用该项目模板来定义多个CLR存储过程和函数。
You can use this project template to define multiple CLR stored procedures and functions.
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
同样,其它对已命名对象(如模板和外部函数)的引用通常可以静态解析。
Similarly, other references to named objects such as templates and external functions can often be resolved statically.
该示例显示了这三个服务的搜索函数的唯一服务描述模板。
The example shows only the template of service description for the search functions in those three services.
图6展示了在决定何时需要注册函数模板时所考虑的问题。
Figure 6 shows the issues to consider in determining when a function template needs to be registered.
如果查询在谓词或选择列表中具有一个函数模板,那么该函数模板必须是物化查询表的一部分。
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.
但是只能通过递归模板或者扩展函数来完成其他两种常见的操作:求最大值和最小值。
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.
下面的代码提供了一个为全局对象创建模板并且设置全局函数的例子。
The following code provides an example of creating a template for the global object and setting the built-in global functions.
跳过导入与函数,查看模板末端,看看需要修改什么地方来适应您的项目。
Skipping the imports and functions, look at the bottom of the template and what you need to change to suit your project.
使用模板作为函数也破坏了模板名称空间。
Having templates act as functions also pollutes the template namespace.
在任何大型项目中,都有一些模板不能转换成函数,这常常是因为要创建绑定。
In any large project, there are inevitably templates to follow which cannot be reduced to functions, usually because of the bindings being created.
此外,所调用的函数的名称将输出到命令行,通过这种方式,模板即可为各函数添加简单的日志。
In addition, the template adds simple logging to each function by printing out to the command line the name of the function called.
因此,模板系统必须将表单与函数分离,但还必须在两者之间建立联系。
Hence, a template system must separate form from function, yet also bridge the divide.
每个函数模板都有一个关联的对象模板。
你可以可以为变量指明数据类型,输入参数,来自函数的返回值,用户自定义函数以及模板。
You are also able to specify data types for variables, input parameters, return values from functions, user-defined functions and templates.
当一个查询引用一个函数模板时,查询优化器尝试生成一个灵活的计划,允许在远程数据源上计算这个函数引用。
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.
函数模板就像是用户定义函数的一个扩展。
A function template is like an extension to a user-defined function.
应用推荐