|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Performs order reversal of Compare by swapping operands. More...
#include <ahFunction.H>
Public Member Functions | |
| constexpr | Inversed_Compare (const Compare &__cmp) noexcept |
The inversion of __cmp, which is not copied. | |
| Inversed_Compare (Compare &&cmp=Compare()) noexcept | |
| constexpr bool | operator() (const T &op1, const T &op2) const noexcept(noexcept(static_cast< bool >(cmp(op2, op1)))) |
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 1152 of file ahFunction.H.
|
inlineconstexprnoexcept |
The inversion of __cmp, which is not copied.
| [in] | __cmp | the comparison. The object keeps a reference to it: __cmp must outlive the object. |
Definition at line 1163 of file ahFunction.H.
|
inlinenoexcept |
Definition at line 1165 of file ahFunction.H.
|
inlineconstexprnoexcept |
Definition at line 1172 of file ahFunction.H.
References Aleph::Inversed_Compare< T, Compare >::cmp.
|
private |
Definition at line 1154 of file ahFunction.H.
Referenced by Aleph::Inversed_Compare< T, Compare >::operator()().