LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Attributes | List of all members
llvm::is_integral_or_enum< T > Class Template Reference

Metafunction that determines whether the given type is either an integral type or an enumeration type. More...

#include <type_traits.h>

Collaboration diagram for llvm::is_integral_or_enum< T >:
Collaboration graph
[legend]

Static Public Attributes

static const bool value
 

Detailed Description

template<typename T>
class llvm::is_integral_or_enum< T >

Metafunction that determines whether the given type is either an integral type or an enumeration type.

Note that this accepts potentially more integral types than we whitelist above for is_integral because it is based on merely being convertible implicitly to an integral type.

Definition at line 158 of file type_traits.h.

Member Data Documentation

template<typename T >
const bool llvm::is_integral_or_enum< T >::value
static
Initial value:
= (!is_class<UnderlyingT>::value && !is_pointer<UnderlyingT>::value &&
!is_same<UnderlyingT, float>::value &&
!is_same<UnderlyingT, double>::value &&
sizeof(char) != sizeof(check_int_convertible(nonce_instance)))

Definition at line 171 of file type_traits.h.


The documentation for this class was generated from the following file: