Throw.hookOpEquals

bool hookOpEquals(L, R)(L lhs, R rhs)

Called automatically upon a comparison for equality. Throws upon an erroneous comparison (one that would make a signed negative value appear equal to an unsigned positive value).

Parameters

lhsThe first argument of Checked, e.g. int if the left-hand side of the operator is Checked!int
rhsThe right-hand side type involved in the operator

Returns

The result of the comparison.

Throws

CheckFailure if the comparison is mathematically erroneous.