Codman
06-23-2008, 02:51 PM
Hi everyone!
Yesterday I was reading my C++ book. There I just came across with the function "template". I got the basic idea as to where to use it but got a bit confused with the syntax which was given over there. Can any one help on this. The syntax was somewhat like this:
template <class T1,class T2,class T3,........>
ReturnType FunctionName (argument1, argument2,.......,argumentN)
{
//Body of the function
}
Please explain me this.
Thanks in advance
Yesterday I was reading my C++ book. There I just came across with the function "template". I got the basic idea as to where to use it but got a bit confused with the syntax which was given over there. Can any one help on this. The syntax was somewhat like this:
template <class T1,class T2,class T3,........>
ReturnType FunctionName (argument1, argument2,.......,argumentN)
{
//Body of the function
}
Please explain me this.
Thanks in advance