Answers to Self-Review Exercises

  1. 18.1

    1. False. Keywords typename and class in this context also allow for a type parameter of a fundamental type.

    2. True.

    3. False. Template parameter names among function templates need not be unique.

    4. True.

  2. 18.2

    1. function-template specializations, class-template specializations.

    2. template, angle brackets (< and >).

    3. overload.

    4. parameterized.

    5. scope resolution.

Get C++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.