isAnyStaticNeighbourhood

$(IS_ANY StaticNeighbourhood)

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

Examples

1 struct Foo {
2 	enum uint Dimension = 2;
3 	enum uint NeighboursAmount = 1;
4 	int[2][] getNeighboursCoordinates(int x, int y) {
5 		return [[x+1, y+1]];
6 	}
7 }
8 static assert(!   isStaticNeighbourhood!(Foo, 3));
9 static assert( isAnyStaticNeighbourhood!(Foo   ));

Meta