Implementation of Class Templates and Function Templates code example
Example: how to write a template c++
template <class myType>
myType GetMax (myType a, myType b) {
return (a>b?a:b);
}
template <class myType>
myType GetMax (myType a, myType b) {
return (a>b?a:b);
}