isSomeChar

Determines whether T is a character type.

Character types are:

  • char
  • wchar
  • dchar
enum bool isSomeChar(T);

Return Value

$(D_KEYWORD true) if T is a character type, $(D_KEYWORD false) otherwise.

Examples

static assert(isSomeChar!char);
static assert(isSomeChar!wchar);
static assert(isSomeChar!dchar);

static assert(!isSomeChar!byte);
static assert(!isSomeChar!ubyte);
static assert(!isSomeChar!short);
static assert(!isSomeChar!ushort);
static assert(!isSomeChar!int);
static assert(!isSomeChar!uint);

Meta