relation

Create a Relation type with a tuple of the provided types (Args).

template relation (
Args...
) {}

Examples

True iff T0 and T1 keys are the same type.

1 auto a0 = kvTuple(1, "a0");
2 auto a1 = kvTuple(2, "a1");
3 
4 static if (!isSameKeyType!(typeof(a0), typeof(a1)))
5     static assert(0, "isSameKeyType: expected to pass because the key types are the same");
6 
7 auto b0 = kvTuple(3, "b0");
8 auto b1 = kvTuple(1.1, "b1");
9 
10 static if (isSameKeyType!(typeof(b0), typeof(b1)))
11     static assert(0, "isSameKeyType: expected to fail because the key types are different");

Meta