Detect whether T is a built-in boolean type or enum of boolean base type.
static assert( isBoolean!bool); enum EB : bool { a = true } static assert( isBoolean!EB); struct SubTypeOfBool { bool val; alias val this; } static assert(!isBoolean!(SubTypeOfBool));
See Implementation
Detect whether T is a built-in boolean type or enum of boolean base type.