template functions

Write a function template declaration for a function with the following characteristics:

• The function name is “Tester3”;
• The function return type is char;
• There are two template parameters, a_type and b_type;
• There are four formal parameters:
x (a_type), y (b_type), w (b_type), and m (b_type)


This is what I came up with.

1
2
3
4
5
template<typename a_type, typename b_type>
char Tester3 (a_type x, b_type y, b_type w, b_type m)
{

}


Would this be correct??
Looks fine to me.
thanks for your quick response firedraco
that is not a declaration, but a definition
Topic archived. No new replies allowed.