[Solved] What types in C++ are enumerated types?


From cppreference:

An enumeration is a distinct type whose value is restricted to one of
several explicitly named constants (“enumerators”). The values of the
constants are values of an integral type known as the underlying type
of the enumeration.

So an example of an enumerated type is any type you might declare using the enum keyword.

An example of a non-enumerated type would be an int because its values are not restricted to a set of explicitly named constants, but rather all integers (or all integers an int could represent given its size).

Another example of a non-enumerated type is a pointer to anything because the set of possible values for a pointer are not integrals.

solved What types in C++ are enumerated types?