一、类型区别 先看看如下的例子: void func(const int &abc) { } 现在我来提个问题:abc是什么类型?当然是const int &类型。现在将问题深入一点,把它改成一个模板: template<typename T> void func(const T &abc) {