ModErn Text Analysis
META Enumerates Textual Applications
|
A CRTP base class that allows for inheritance of all comparator operators given that the derived class defines an operator<(). More...
#include <comparable.h>
Private Member Functions | |
const Derived & | as_derived () const |
Helper method to cast the current comparable to its Derived representation. More... | |
Friends | |
bool | operator== (const comparable &lhs, const comparable &rhs) |
Determines if two comparables are equivalent, as defined by their operator<. More... | |
bool | operator!= (const comparable &lhs, const comparable &rhs) |
Determines if two comparables are not equivalent, as defined by negation of the comparable::operator==. More... | |
bool | operator> (const comparable &lhs, const comparable &rhs) |
bool | operator<= (const comparable &lhs, const comparable &rhs) |
bool | operator>= (const comparable &lhs, const comparable &rhs) |
A CRTP base class that allows for inheritance of all comparator operators given that the derived class defines an operator<().
All operations are defined in terms of Derived's operator<().
|
inlineprivate |
Helper method to cast the current comparable to its Derived representation.
|
friend |
Determines if two comparables are equivalent, as defined by their operator<.
lhs | |
rhs |
|
friend |
Determines if two comparables are not equivalent, as defined by negation of the comparable::operator==.
lhs | |
rhs |
|
friend |
lhs | |
rhs |
|
friend |
lhs | |
rhs |
|
friend |
lhs | |
rhs |