Document Template Class 文档模板类
class template 类模板 ; 类别模板 ; 类别样板
class template specializations 类模板特化 ; 类别模板特化 ; 类别范本特化 ; 类模型板特化
class template partial specializations 类模板部分特化 ; 类别范本部份特化 ; 类别模板偏特化 ; 类模板偏特化
Template Class Procedures 模板类程序
template class & class templates 模板类和类模板
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选项的模板类所生成的代码。
Right add to it in a second, but the idea is class is going to be a template for creating instances.
对象的实例的模板,现在,这真是一个很蠢的模板,我马上会去完善它,但是首先我应该先建立起它来。
OK, the reason I'm saying this is, we have one class definition, is a cookie cutter, it's a template that's going to let us build versions of these things.
同一实例,好,我为什么要说这个的原因是,我们学习了类的定义了,这就像曲奇成型刀一样,它是个让我们建立不同版本的,这些东西的一个模板。
Ok, and again, I'm going to remind you, the class is this template.
就在这里,我想大家在,你们的课堂手册上看看这个,好,我将会回去重建下这个类。
应用推荐