Signed

Returns the corresponding signed type for T. T must be a numeric integral type, otherwise a compile-time error occurs.

template Signed (
T
) {}

Examples

alias S1 = Signed!uint;
static assert(is(S1 == int));
alias S2 = Signed!(const(uint));
static assert(is(S2 == const(int)));
alias S3 = Signed!(immutable(uint));
static assert(is(S3 == immutable(int)));
static if (is(ucent))
{
    alias S4 = Signed!ucent;
    static assert(is(S4 == cent));
}

Meta