hasDisplayValueType

return true if T has an alias named DisplayValueType. False if not

template hasDisplayValueType (
T
) {
enum hasDisplayValueType;
}

Examples

1 struct Foo {
2 	alias DisplayValueType = uint;
3 }
4 
5 static assert( hasDisplayValueType!Foo);
6 static assert(!hasDisplayValueType!string);

Meta