laravel 用必要用vue嘛 函数模板和模板函数的区别?

函数模板和模板函数的区别?Function template定义一组函数template<classt>t*testfunc(t*SRC){return(SRC)}使用时实例化template

函数模板和模板函数的区别?

Function template定义一组函数

template<classt>

t*testfunc(t*SRC){return(SRC)}

使用时实例化template函数

INTM[10

]int*P=testfunc<int>(m)

class template定义一组类

template<classt>

classtestclass

{

]public:[t*testfunc(t*SRC)

}

使用时先实例化类模板

char[10

]testclass<char>A

char*P=a.testfunc(CH)