How does C++ classify fundamental and compound types, and where do enums and class types fit?
Show answer and explanation
Fundamental types include void, std::nullptr_t, integral types, and floating-point types. Compound types are formed from or describe richer program entities and include references, pointers, arrays, functions, enumerations, class and union types, and pointers to members. An alias does not create a new type, cv-qualification modifies a type, and library types such as std::string are class types rather than language-level primitive types.
Fundamental types include void, std::nullptr_t, integral types, and floating-point types. Compound types are formed from or describe richer program entities and include references, pointers, arrays, functions, enumerations, class and union types, and pointers to members. An alias does not create a new type, cv-qualification modifies a type, and library types such as std::string are class types rather than language-level primitive types.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.