isNotVectorOrMatrix
enum bool isNotVectorOrMatrix(T);
1 import std.bigint, std.numeric, std.typetuple;
2
3 alias TT = TypeTuple!(ubyte, ushort, uint, ulong,
4 byte, short, int, long,
5 float, double, real,
6 creal, cfloat, cdouble);
7
8 foreach(T; TT)
9 {
10 static assert(isNotVectorOrMatrix!(T));
11 static assert(isNotVectorOrMatrix!(const(T)));
12 static assert(isNotVectorOrMatrix!(immutable(T)));
13 }
14
15 static assert(isNotVectorOrMatrix!BigInt);
16 // static assert(isNotVectorOrMatrix!(CustomFloat!16)); In dmd2.064, isNotVectorOrMatrix!(CustomFloat!16) is true.
行列型でも、ベクトル型でもないような型