At a call of a function template with no explicit arguments, the compiler finds the template arguments by template argument deduction: it matches each parameter type against the type of the corresponding argument. Each template parameter must be deduced to a single type from all the arguments in which it appears; a parameter that appears in no function parameter (only in the return type, say) cannot be deduced, and must be given explicitly, as in larger<double>(3, 7.5).
Computer Science · Glosarium