What is the difference between function template and template function?
The function generated by the compiler from function template(generic function) for specified data type is known as template function. Example: The below code is called function template as it is template for a function.
template
T doubleVal(T a){
return a+a;
}
int main(){
cout<(5)<
When we compile this code compiler will write a function for int by taking reference from template function. That function is known as template function.