Loading...
Searching...
No Matches
caf::detail::comparable< Subclass, T > Class Template Reference

Barton–Nackman trick implementation. More...

`#include <comparable.hpp>`

Inheritance diagram for caf::detail::comparable< Subclass, T >:

## Friends

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

## Detailed Description

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:

- /build/actor-framework-Z9pIPl/actor-framework-0.17.6/libcaf_core/caf/detail/comparable.hpp