isEqualTypes

2つのTemplateRangeが等しいかどうか検証します。

template isEqualTypes () if (
isTemplateRange!A &&
isTemplateRange!B
) {}

Members

Enums

pred
eponymoustemplate pred(A, B)
Undocumented in source.

Variables

isEqualTypes
enum bool isEqualTypes;
Undocumented in source.

Examples

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));

Meta