// function template #include using namespace std; template T GetMax (T a, T b) { T result; result = (a>b)? a : b; return (result); } int main () { int i = 5, j = 6, k; long l = 10, m = 5, n; k = GetMax(i, j); n = GetMax(l, m); float x = GetMax((float)27.0, (float)9.0); cout << k << endl; cout << n << endl; cout << x << endl; return 0; }