- Exercise
In this exercise, you will use the type-traits libraray to perform certain tasks.
We'll cover the following
Task
Using the type-traits library, write a program that performs the following tasks:
Modify an int
type at compile time by completing the following tasks:
- Add
const
to your type. - Remove
const
from your type. - Compare your type with
const int
.
Note: Use the relevant header files.
Get hands-on with 1200+ tech skills courses.