[#BloombergLP-bslmf-IsEnum] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::IsEnum :relfileprefix: ../../ :mrdocs: This `struct` provides a meta‐function that computes, at compile time, whether the (template parameter) `t_TYPE` is an enumerated type. It derives from `bsl::true_type` if `t_TYPE` is an enumerated type, and from `bsl::false_type` otherwise. == Synopsis Declared in `<bslmf_isenum.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> struct IsEnum : bsl::is_enum<t_TYPE>::type ---- == Description Enumerated types are the only user‐defined types that have the characteristics of a native arithmetic type (i.e., they can be converted to an integral type without invoking user‐defined conversions). This class takes advantage of this property to distinguish `enum` types from class types that are convertible to an integral or enumerated type. == Base Classes [cols="1,4"] |=== | Name| Description | `bsl::is_enum<t_TYPE>::type` | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#