您要查找的是不是:
- Define a function template to return the larger of two values. 定义一个函数模板,返回两个值中较大的一个。
- A function template is like an extension to a user-defined function. 函数模板就像是用户定义函数的一个扩展。
- The operations performed inside a function template constrains the types that can be used to instantiate the function. 在函数模板内部完成的操作限制了可用于实例化该函数的类型。
- When we use a function template, the compiler infers what template argument(s) to bind to the template parameter(s). 使用函数模板时,编译器会推断哪个(或哪些)模板实参绑定到模板形参。
- Item 7: Why Not Specialize Function Templates? 条款7:为什么不特化函数模板?
- Rerank the viable functions excluding the function template instantiations. 重新排列去掉函数模板实例的可行函数。
- A member function template is never instantiated to perform the copy of a class object to an object of its class type. 这句话的理解可能是上面问题的答案,但是个人没有理解好。
- A friend declaration for a class template or function template, which grants access to all instances of the friend. 类模板或函数模板的友元声明,授予对友元所有实例的访问权。
- Once the compiler determines the actual template argument(s), it instantiates an instance of the function template for us. 一旦编译器确定了实际的模板实参,就称它实例化了函数模板的一个实例。
- When we grant access to all instances of a given template, there need not be a declaration for that class or function template in scope. 当授予对给定模板的实例的访问权时候,在作用域中不需要存在该类模板或函数模板的声明。
- When a function template is instantiated, each nontype parameter is bound to a constant expression as indicated by the arguments used in the call. 在实例化函数模板的时候,将每个非类型形参绑定到一个常量表达式,该常量表达式作为调用中使用的实参给出。
- Explain each of the following function template definitions and identify whether any are illegal. Correct each error that you find. 解释下面每个函数模板的定义并指出是否有非法的。改正所发现的错误。
- For example, all references to Glorp in the compare function template will be resolved to the same type when the function is instantiated. 如果是类型形参,我们就知道该形参表示未知类型,如果是非类型形参,我们就知道它是一个未知值。
- We can write both function templates and class 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. 当一个查询引用一个函数模板时,查询优化器尝试生成一个灵活的计划,允许在远程数据源上计算这个函数引用。
- 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. 通常静态断言在类或模板函数中使用时,模板实例后,静态断言才能在实例的模板中实例。
- A function template cannot be instantiated from the generic template definition in some files and be specialized for the same set of template arguments in other files. 不能在一些文件中从泛型模板定义实例化一个函数模板,而在其他文件中为同一模板实参集合特化该函数模板。
- This responsibility means that the user must ensure that these declarations are visible when a member of a class template or a function template is instantiated. 这个责任意味着,在实例化类模板的成员或函数模板的时候,用户必须保证这些声明是可见的。
- In this section we'll look at nontype parameters as used by function templates. 本节将介绍函数模板使用的非类型形参。
- Just as we can define function templates, we can also define class templates. 就像可以定义函数模板一样,也可以定义类模板。