$(IS_ANY Neighbourhood)
struct Foo { enum uint Dimension = 2; int[Dimension][] getNeighboursCoordinates(int x, int y) { return [[x+1, y+1], [x+1, y], [x+1, y-1]]; } } static assert(! isNeighbourhood!(Foo, 3)); static assert( isAnyNeighbourhood!(Foo ));
See Implementation
$(IS_ANY Neighbourhood)