码迷,mamicode.com
首页 > 编程语言 > 详细

C++模板编程 - 第七章 模板术语

时间:2015-06-23 21:20:39      阅读:115      评论:0      收藏:0      [点我收藏+]

标签:

Template Class or Class Template

Class template is a TEMPLATE used to generate classes.

Template class is a classed generated from a template. Sometimes people also used it as the synonym of class template.

Instantiation and Specialization

Instantiation means that we replace the formal parameters with actual types and get a REAL CLASS.

Specialization means we specify some of or all of the parameters of a template.

Declaration and Definition

Declaration brings a name into the CURRENT SCOPE.

Definition tells the compiler how to construct a class/function etc.

 

changelog

@2015/6/23 今天下午刚刚跪完数理方程T_T

 

C++模板编程 - 第七章 模板术语

标签:

原文地址:http://www.cnblogs.com/ch3cooh/p/cpp_template_ch7.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!