|
BDE 4.14.0 Production release
|
#include <bslmf_isenum.h>
Additional Inherited Members | |
Public Types inherited from bsl::integral_constant< t_TYPE, t_VAL > | |
| typedef t_TYPE | value_type |
| typedef integral_constant | type |
Public Member Functions inherited from bsl::integral_constant< t_TYPE, t_VAL > | |
| integral_constant ()=default | |
| integral_constant (const integral_constant &)=default | |
| integral_constant | operator= (const integral_constant &)=default |
| ~integral_constant ()=default | |
| BSLS_KEYWORD_CONSTEXPR | operator value_type () const BSLS_KEYWORD_NOEXCEPT |
Return t_VAL. | |
Static Public Attributes inherited from bsl::integral_constant< t_TYPE, t_VAL > | |
| static const t_TYPE | value = t_VAL |
This struct template implements the is_enum meta-function defined in the C++11 standard [meta.unary.cat] to determine if the (template parameter) t_TYPE is an enumerated type. This struct derives from bsl::true_type if the t_TYPE is an enumerated type, and from bsl::false_type otherwise.
This formula determines whether or not most (complete) types are, or are not, enumerations using only facilities available to a C++03 compiler; additional specializations will handle the remaining corner cases.