Answer the following questions true (T) or false (F)
1. To instantiate and call, a template function requires special syntax.
2. The template prefix can be written template
1. False
Explanation: If the function template is available in the file, it is only necessary to write the function name with arguments, that is, to act as if the needed function definition is already present. The compiler will figure out the types and generate the instance of the function template.
2. True
Explanation: The C++ Standard provides for use of either class or typename in here, but the text, recognizing common usage, has standardized on the use of the keyword class. Nevertheless, you may see this in code you read, so you should be able to recognize it.
You might also like to view...
A workbook is a grid of rows and columns
Indicate whether the statement is true or false
A(n) ________ document is a Word document that serves as a container for different parts of a document
Fill in the blank(s) with correct word