Just started looking at these things and have a couple quick questions.
1) All the tutorials and the book I have use T as the argument name such as:If I have several functions I want to use a template on can I use the same name for the template (T) for each of them or do they require seperate names?template<class T> ...
2) Is there a way I can use template on a function for all types except a particular type which will have a different function defination (overloaded function)?
3) I have read that the template simply generates the needed object code to handle each type. Does it generate the code to handle each and every type, just the types used in the program, or just the types you have actually tried to use with that function? Or is this 100% compiler dependent?