Top "Function-templates" questions

A function template behaves like a regular function except that works with types specified on the template arguments.

Can a class member function template be virtual?

I have heard that C++ class member function templates can't be virtual. Is this true? If they can be virtual, …

c++ templates virtual-functions function-templates c++-faq
Template function in C# - Return Type?

It seems that c# does not support c++ like templates. For example template <class myType> myType GetMax (myType …

c# templates function-templates
Why function template cannot be partially specialized?

I know the language specification forbids partial specialization of function template. I would like to know the rationale why it …

c++ language-design template-specialization partial-specialization function-templates
C++ template specialization on functions

I'm playing around with template specialization, and I've found an issue I can't seem to solve; this is my code: …

c++ templates template-specialization function-templates
Can I use (boost) bind with a function template?

Is it possible to bind arguments to a function template with (boost) bind? // Define a template function (just a silly …

c++ boost boost-bind function-templates
How to pass a template function in a template argument list

Suppose I have a template function: template<typename T> T produce_5_function() { return T(5); } How can I pass …

c++ templates c++11 function-templates
partial specialization of function templates

In the below code snippet, template<typename T1> void func(T1& t) { cout << "all" <&…

c++ templates template-specialization function-templates