- Exercise

In this lesson, we'll solve an exercise on type erasure.

We'll cover the following

Problem Statement

Compare the implementations of type erasure:

Implement a type deduction system with the help of type erasure which returns a string representation corresponding to each data type. You need to write the function for int, long long, char, void, and float.

Get hands-on with 1000+ tech skills courses.