CaseyCarter / cmcstl2

An implementation of C++ Extensions for Ranges
Other
221 stars 68 forks source link

Implemented changes from P1716 #309

Closed tomaszkam closed 5 years ago

tomaszkam commented 5 years ago

The changes in this papers weakness the constrains of compare algorithm to be derived from the predicate (required invocation only in the specific direction). The IndirectRelation concept is now replaced with IndirectBinaryPredicate, that requires only single order of argument. The IndirectlyComparable concept is now derived from IndirectBinaryPredicate.

Updated the following algorithms, to use IndirectRelation:

In addition the following two algorithms were changed to use IndirectlyComparable as they compare elements of two different sequences:

tomaszkam commented 5 years ago

This implementation was based on old revision.