Lattice

Example of a Lattice

struct Lattice (
Ct
uint N
neighbourhood = Neighbourhood!N
) if (
isNeighbourhood!(neighbourhood, N)
) {
enum uint Dimension;
}

Examples

static assert(isLattice!(Lattice!(int, 2), int, 2));
static assert(isAnyLattice!(Lattice!(char, 3)));

Meta