Noobie programmer here, just learning class templates for c++.
My current project requires me to make a template class that can take ints, doubles, or strings as parameters.
So far, every time I have created the implementation of the class functions, i have to make 3 of each function (one for each parameter type).
My question is, if the implementation of a particular class function is exactly the same regardless of the parameter type, is there a way to just write one implementation for it?
Thanks in advance to all replies!