hasNeighbourhoodType

return true if T has an alias named NeighbourhoodType. False if not * return true if T has an alias named NeighbourhoodType. False if not. Note that NeighbourhoodType need not actually be a neighbourhood. It can be any type

template hasNeighbourhoodType (
T
) {
enum hasNeighbourhoodType;
}

Examples

1 struct Foo {
2 	alias NeighbourhoodType = char; //car is is not a neighbourhood
3 }
4 
5 static assert( hasNeighbourhoodType!Foo); //but this return true anyways
6 static assert(!hasNeighbourhoodType!int);

Meta