参考:
狄泰相关教程:https://www.cnblogs.com/wanmeishenghuo/p/9588903.html
C++函数模板(模板函数)详解 :https://blog.csdn.net/low5252/article/details/94622335
函数模板和类模板:https://blog.csdn.net/weixin_40807247/article/details/80992338?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task