isNotVectorOrMatrix

行列型でも、ベクトル型でもないような型

enum bool isNotVectorOrMatrix(T);

Examples

import std.bigint, std.numeric, std.typetuple;

alias TT = TypeTuple!(ubyte, ushort, uint, ulong,
                       byte,  short,  int,  long,
                      float, double, real/*,
                      creal, cfloat, cdouble*/);

foreach(T; TT)
{
    static assert(isNotVectorOrMatrix!(T));
    static assert(isNotVectorOrMatrix!(const(T)));
    static assert(isNotVectorOrMatrix!(immutable(T)));
}

static assert(isNotVectorOrMatrix!BigInt);
// static assert(isNotVectorOrMatrix!(CustomFloat!16)); In dmd2.064, isNotVectorOrMatrix!(CustomFloat!16) is true.

Meta