enum predT(A, B) = is(A == B); alias Ts1 = ToTRange!(int, int, long); alias Ts2 = ToTRange!(int, int, long); static assert(isEquals!(predT, Ts1, Ts2)); static assert(isEqualTypes!(Ts1, Ts2)); enum predV(alias A, alias B) = A == B; alias Vs1 = ToTRange!(1, 2, 3); alias Vs2 = ToTRange!(1, 2, 3); static assert(isEquals!(predV, Vs1, Vs2)); static assert(isEqualValues!(Vs1, Vs2));
2つのTemplateRangeが等しいかどうか検証します。