Barton–Nackman trick implementation.
More...
#include <comparable.hpp>
|
bool | operator== (const Subclass &lhs, const T &rhs) noexcept |
|
bool | operator== (const T &lhs, const Subclass &rhs) noexcept |
|
bool | operator!= (const Subclass &lhs, const T &rhs) noexcept |
|
bool | operator!= (const T &lhs, const Subclass &rhs) noexcept |
|
bool | operator< (const Subclass &lhs, const T &rhs) noexcept |
|
bool | operator> (const Subclass &lhs, const T &rhs) noexcept |
|
bool | operator< (const T &lhs, const Subclass &rhs) noexcept |
|
bool | operator> (const T &lhs, const Subclass &rhs) noexcept |
|
bool | operator<= (const Subclass &lhs, const T &rhs) noexcept |
|
bool | operator>= (const Subclass &lhs, const T &rhs) noexcept |
|
bool | operator<= (const T &lhs, const Subclass &rhs) noexcept |
|
bool | operator>= (const T &lhs, const Subclass &rhs) noexcept |
|
template<class Subclass, class T = Subclass>
class caf::detail::comparable< Subclass, T >
Barton–Nackman trick implementation.
Subclass
must provide a compare member function that compares to instances of T
and returns an integer x with:
x < 0
if *this < other
x > 0
if *this > other
x == 0
if *this == other
The documentation for this class was generated from the following file:
- libcaf_core/caf/detail/comparable.hpp