The template parameters of a function-template definition


Question: State which of the following are true and which are false. If false, explain why.

a) The template parameters of a function-template definition are used to specify the types of the arguments to the function, to specify the return type of the function and to declare variables within the function.

b) Keywords type name and class as used with a template type parameter specifically mean "any user-defined class type."

c) A function template can be overloaded by another function template with the same function name.

d) Template parameter names among template definitions must be unique.

e) Each member-function definition outside a class template must begin with a template header.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: The template parameters of a function-template definition
Reference No:- TGS02405839

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)