isComplex

enum bool isComplex(T, F);

Examples

1 import std.complex;
2 static assert(isComplex!(Complex!float));
3 static assert(isComplex!cfloat);
4 static assert(!isComplex!float);
5 
6 static assert(isComplex!(Complex!float, float));
7 static assert(isComplex!(cfloat, float));
8 static assert(!isComplex!(float, float));
9 
10 static assert(!isComplex!(Complex!double, float));
11 static assert(!isComplex!(cdouble, float));
12 static assert(!isComplex!(double, float));

Meta