Listing 7. Generated Code for a template class.
列表7.为一个模板类所生成的代码。
In Listing 8, template class a may be instantiated only if type t is signed.
在清单8中,仅当t有符号时,模板类a才能进行实例化。
Listing 8. Generated Code for a template class with DTYPENAME_TEMPLATES option.
列表8.为一个采用DTYPENAME_TEMPLATES选项的模板类所生成的代码。
Allowing a template class or function to be instantiated with only certain data types.
允许模板类或函数仅使用某些数据类型来进行实例化。
A consequence that emerged later in the project was that the implemented template class was not ideally suited to all types of communication technology.
后来该项目中的一项后果是,实现的模板类并不能理想地适用于所有类型的通信技术。
Domain model - modeling a template class and the instance class?
领域模型的一个模板类和实例类建模?
You cannot instantiate a generic or template class based on a local or unnamed type.
无法实例化基于局部类型或未命名类型的泛型或模板类。
You cannot instantiate a generic or template class based on a local or unnamed type.
您不能根据区域或未具名型别,具现化泛型或样板类别。
It is invalid to use an unspecialized template class name as a template parameter in a base class list.
将非专用化的模板类名用作基类列表中的模板参数是无效的。
You must explicitly add the template type parameters to the template class name when using it as a template parameter in a base class list.
当要将某个模板类型参数用作基类列表中的模板参数时,必须显式地将该模板类型参数添加到模板类名中。
The generated code for the template class one has both the declaration and definition for the operation op within the template class declaration, as shown in Listing 7.
为模板类一所生成的代码具有在模板类声明内部用于操作的声明和定义,如列表7中所示。
The grammar class is a template class that is parameterized by its derived class DerivedT and the context class ContextT. The declaration for the grammar class is as follows.
grammar类是一个模板类,被其派生类DerivedT和上下文类ContextT参数化。
The derived class that you design must have a nested template class/structure named definition (you may not change this name). The definition class has the following properties
您设计的派生类必须有一个名为definition(可以不修改此名)的嵌套的模板类/结构。
But in fact, all that is necessary to implement this strategy is to use a modified class loader that constructs new instantiation classes from a "template" class file.
但实际上,实现该策略所需的全部就是使用一个修改的类装入器,它根据“模板(template)”类文件构造新的实例化类。
But in fact, all that is necessary to implement this strategy is to use a modified class loader that constructs new instantiation classes from a "template" class file.
但实际上,实现该策略所需的全部就是使用一个修改的类装入器,它根据“模板(template)”类文件构造新的实例化类。
应用推荐