isAnyColorPalette

$(IS_ANY ColorPalette)

template isAnyColorPalette (
T
) {
enum isAnyColorPalette;
enum isAnyColorPalette;
}

Examples

1 // a palette template
2 struct A(Ct, Dv) {
3 	Dv getDisplayValue(string behaviour)(Ct cellState) {
4 		return Ct.init;
5 	}
6 
7 	Dv getDisplayValue(Ct cellState) { return getDisplayValue!""(cellState); }
8 }
9 
10 bool a =       isAnyPalette!(A!(int, byte)); // true for any values of A
11 bool b = !isAnyColorPalette!(A!(int, int )); // false since A!(int, int ) does not return uint 
12 bool c = !isAnyColorPalette!(A!(int, uint)); // true  since A!(int, uint) does     return uint

Meta