isAnyNeighbourhood

$(IS_ANY Neighbourhood)

Members

Manifest constants

isAnyNeighbourhood
enum isAnyNeighbourhood;
Undocumented in source.
isAnyNeighbourhood
enum isAnyNeighbourhood;
Undocumented in source.

Examples

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   ));

Meta