underlying_type Class
Produces the underlying integral type for an enumeration type.
Syntax
template <class T>
struct underlying_type;
Parameters
T
The type to modify.
Remarks
The type
member typedef of the class template names the underlying integral type of T, when T is an enumeration type, otherwise there is no member typedef type
.
Requirements
Header: <type_traits>
Namespace: std
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for