posts - 3, comments - 0, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

C++ template summarize

Posted on 2010-01-04 15:13 TigerLee 阅读(139) 评论(0)  编辑 收藏 引用

1、two fundamental kinds of template supported by C++ currently 类模板 函数模板

    this classification includes member templates 成员模板(类成员模板、函数成员模板)

    声明问题:(考虑他们的声明、定义:与普通类、函数区别之处,例外引入了一个parameterization clause,语法)

//a namespace cope class template

//a member function template

//a out-of-class member function template definition

//a namespace cope function template

//an in-class member class template definition

//another member class template, without its definition

//an in-class(therefore implicitly inline) member function template def

//an out-class member class template definition

//union templates…

template<…parameters here…>

export template<…parameters here…>


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理