For instance:
template void fun(const Type1 &v1, const Type2 &v2) { largest::type val
You can use the sizeof built-in function of c to get the memory size of the type. You can also call it on an instance of a type. For example:
sizeof
return (sizeof(v1) > sizeof(v2));