Operators

Back to Predicates

An operator predicate is a predicate which is invoked by one of the C++ operators ==, !=, <, <=, >, or >=. We denote these predicates by the relations , , , , , and , respectively.

Equalities

The and stand for set-equality and set-unequality. If one is defined, then so is the other, and the predicates are related by , for all and .

Inequalities

The and stand for strict weak orders, and and stand for total preorders. If one is defined, then so are the others, and the predicates are related by , for all and .

Equivalence

The inequalities induce an equivalence relation by . This equivalence should not be confused for the set-equality, unless the is a strict partial order, or equivalently, the is a partial order (antisymmetric).

Files

Operators as functions

Testing for operators