isIntegralPair

Tests if T is a pair of integers that implicitly convert to V. The following code must compile for any pair T:

(T x){ V a = x[0]; V b = x[1];}

The following must not compile:

(T x){ V c = x[2];}
@safe
template isIntegralPair (
T
V = uint
) {
@safe
enum isIntegralPair;
}

Meta