Search⌘ K
AI Features

Check Type Information

Explore the fundamentals of C++ type traits to check and classify primary and composite type categories. Learn how to use type properties and compile-time type modifications to optimize your C++ code effectively.

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, ...