What is the difference between function template & template function?
Printable View
What is the difference between function template & template function?
Oh, the English language. Unfortunately, they may be the same thing. However, I generally think of a function template as being the function prototype and a template function as an overloaded function using template syntax vs independent functions.
//function template
void foo();
//template function (or function template depending on "implied meaning).
template<class T> bar();
another possible use of the term function template would be this:
returnType functionName(functionParameters);
that is a function template is what the component parts of a function are in generic terms, or how you go about making up a function from it's component parts.