isSIMDVector

Detect whether type T is a SIMD vector type.

enum bool isSIMDVector(T);

Examples

static if (is(__vector(float[4])))
{
    alias SimdVec = __vector(float[4]);
    static assert(isSIMDVector!(__vector(float[4])));
    static assert(isSIMDVector!SimdVec);
}
static assert(!isSIMDVector!uint);
static assert(!isSIMDVector!(float[4]));

Meta