isEqualityComparable

Determines whether values of type T can be compared for equality, i.e. using == or != binary operators.

enum bool isEqualityComparable(T);

Return Value

$(D_KEYWORD true) if T can be compared for equality, $(D_KEYWORD false) otherwise.

Examples

static assert(isEqualityComparable!int);

Meta