摘要: c++/oop 模板 函数模板 举例:swap template <class c1,class c2 , ...> 返回值类型 模板名(形参表){ } template<class T> void swap (T & x, T & y){ T tmp=x;x=y;y=tmp; } 编译器在编译的时 阅读全文
posted @ 2022-03-26 16:40 liankewei123456 阅读(74) 评论(0) 推荐(0) 编辑