isUnsigned

Determines whether T is an unsigned numeric type.

Unsigned numeric types are:

  • ubyte
  • ushort
  • uint
  • ulong
enum bool isUnsigned(T);

Return Value

$(D_KEYWORD true) if T is an unsigned numeric type, $(D_KEYWORD false) otherwise.

Examples

static assert(isUnsigned!ubyte);
static assert(isUnsigned!ushort);
static assert(isUnsigned!uint);
static assert(isUnsigned!ulong);

static assert(!isUnsigned!byte);
static assert(!isUnsigned!short);
static assert(!isUnsigned!int);
static assert(!isUnsigned!long);
static assert(!isUnsigned!float);
static assert(!isUnsigned!double);
static assert(!isUnsigned!real);

See Also

$(D_PSYMBOL isSigned).

Meta