haveCommonType

Is true iff Types all share a common type.

enum bool haveCommonType(Types...);

Examples

static assert(haveCommonType!(bool, int, long));
static assert(!haveCommonType!(bool, int, string));

Meta