随笔分类 -  STL_模板

STL教程中讲到的 类/函数模板
摘要:1、函数模板 1.1、 简单例子: template<typename T> //或者 template<class T>T max(T a, T b){ return a>b? a:b; } 2、类模板 2.1、 简单例子: template<typename T> //或者 template<c 阅读全文
posted @ 2016-04-27 13:13 CppSkill 阅读(141) 评论(0) 推荐(0)