C++ named requirements: Compare

Compare is a set of requirements expected by some of the standard library facilities from the user-provided function object types.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 2114(P2167R3)C++98contextual convertibility of return types to bool did notreflect the practice of implementationsrequirements corrected
LWG 3031C++98requirements on const values were insufficentrequirements strengthened

# See also