- Exercise

Let's solve an exercise in this lesson.

We'll cover the following

Problem Statement

Get used to the many functions of the type traits library.

The objective of this exercise is to get familiar with the type-traits library. What we want to achieve here is to modify an int type by doing a, b, c and d.

  • Modify an int type at compile-time.
  • Add const to it.
  • Remove const from it.
  • Compare it with a const int.

Get hands-on with 1000+ tech skills courses.