+ 2
If a template type can take any data type, why would we need multiple template types? Why not just make one template type and use it for everything?
1 Antwort
+ 3
cuz one templatetype only can be on Type at one time. So it's impossible that T is an int and a double. Next time you use the function T could be a char (but not an int at the same time)