- Exercise

Let's solve a template specialization problem in this lesson.

We'll cover the following

Problem Statement

The class template Type in the code below returns to each type the name unknown.

  • Use the class template Type as a starting point to write a type introspection system with the help of partial and full specialization.
  • You need to write code for int, double, an arbitrary class named Account, pointer, const, and string.

Get hands-on with 1200+ tech skills courses.