- Exercise

In this exercise, we will use the type traits library to perform certain tasks.

We'll cover the following

Problem statement #

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 the type.
  • Remove const from ther type.
  • Compare the type with const int.

Note: Use the relevant header files.

Get hands-on with 1200+ tech skills courses.