C++ template summarize

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…>

你可能感兴趣的:(C++ template summarize)