isIntegral

Determines whether T is an integral type.

Integral types are:

  • ubyte
  • ushort
  • uint
  • ulong
  • byte
  • short
  • int
  • long
enum bool isIntegral(T);

Return Value

$(D_KEYWORD true) if T is an integral type, $(D_KEYWORD false) otherwise.

Examples

static assert(isIntegral!ubyte);
static assert(isIntegral!byte);
static assert(!isIntegral!float);

Meta