What you are looking for is
template function, not template class. More exactly, this is irrelevant if the declaring class template or not. You function can stay along or be a member of the class; and this class can be a template class or not, does not matter.
Review some samples on how to write a template function:
http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8a.doc%2Flanguage%2Fref%2Ffunction_templates.htm[
^].
It should be enough, but you can find tons of info if you Google for it.
—SA