Check Type Information
Type traits allow us access and verify the type categories for all our variables. We'll write some code to do that.
We'll cover the following
With the type traits library, you can check primary and composite type categories. The attribute value
gives you the result.
Primary Type Categories
There are 14 different type categories. They are complete and don’t overlap. So each type is only a member of one type category. If you check a type category for your type, the request is independent of the const
or volatile
qualifiers.
Get hands-on with 1400+ tech skills courses.