|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Performs order reversal of Compare by swapping operands. More...
#include <ahFunction.H>
Public Member Functions | |
| Inversed_Compare (const Compare &__cmp) noexcept | |
| Inversed_Compare (Compare &&cmp=Compare()) noexcept | |
| bool | operator() (const T &op1, const T &op2) const noexcept |
Private Attributes | |
| const Compare & | cmp |
Performs order reversal of Compare by swapping operands.
Inversed_Compare evaluates cmp(op2, op1). This is a semantic inversion (argument swap), not logical negation of cmp(op1, op2). For example: < becomes >, and <= becomes >=.
| T | Type of values to compare |
| Compare | Comparison functor type |
Definition at line 1009 of file ahFunction.H.
|
inlinenoexcept |
Definition at line 1015 of file ahFunction.H.
|
inlinenoexcept |
Definition at line 1017 of file ahFunction.H.
|
inlinenoexcept |
Definition at line 1021 of file ahFunction.H.
References Aleph::Inversed_Compare< T, Compare >::cmp, and Aleph::maps().
|
private |
Definition at line 1011 of file ahFunction.H.
Referenced by Aleph::Inversed_Compare< T, Compare >::operator()().