C++面向对象(三)模版子非鱼 2022年12月27日 约 104 字 预计阅读 1 分钟 目录 第五章 模版第五章 模版模版函数(template function)为声明不是定义,在使用时根据输入类型定义使用模版时,不会使用隐式类型转换类模版里的每个函数都是函数模版,需要在声明前加上template template <typename elemType> class BinaryTree{ private: BTnode<elemType> *_root; }Please enable JavaScript to view the comments powered by Giscus.