hasDimension

return true if T has an enum uint named Dimension. False if not

template hasDimension (
T
) {
enum hasDimension;
}

Examples

1 struct Foo {
2 	static immutable int Dimension = 0;
3 }
4 
5 static assert( hasDimension!Foo);
6 static assert(!hasDimension!int);

Meta