isComplex

Determines whether T is a complex type.

Complex types are:

  • cfloat
  • ifloat
  • cdouble
  • idouble
  • creal
  • ireal
enum bool isComplex(T);

Return Value

$(D_KEYWORD true) if T is a complex type, $(D_KEYWORD false) otherwise.

Examples

static assert(isComplex!cfloat);
static assert(isComplex!ifloat);
static assert(isComplex!cdouble);
static assert(isComplex!idouble);
static assert(isComplex!creal);
static assert(isComplex!ireal);

static assert(!isComplex!float);
static assert(!isComplex!double);
static assert(!isComplex!real);

Meta