// a palette template struct A(Ct, Dv) { Dv getDisplayValue(string behaviour)(Ct cellState) { return Ct.init; } Dv getDisplayValue(Ct cellState) { return getDisplayValue!""(cellState); } } bool a = isAnyPalette!(A!(int, byte)); // true for any values of A bool b = !isAnyColorPalette!(A!(int, int )); // false since A!(int, int ) does not return uint bool c = !isAnyColorPalette!(A!(int, uint)); // true since A!(int, uint) does return uint
$(IS_ANY ColorPalette)