The OpenD Programming Language

isSigned

Detect whether T is a built-in signed numeric type.

enum bool isSigned(T);

Examples

static assert(
    isSigned!int &&
    isSigned!long
);

static assert(
    !isSigned!uint &&
    !isSigned!ulong
);

Meta