The OpenD Programming Language

isRGB

Detect whether T is an RGB color.

@safe pure nothrow @nogc
enum isRGB (
T
)

Examples

static assert(isRGB!(RGB!("bgr", ushort)) == true);
static assert(isRGB!LA8 == true);
static assert(isRGB!int == false);

Meta