- 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 the name unknown
to each type.
.
- Use the class template
Type
as a starting point to write a type introspection system with the help of partial and full specialization. - We’ll need to write code for
int
,double
, an arbitrary classes namedAccount
,pointer
,const
, andstring
.
Get hands-on with 1400+ tech skills courses.