C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::comparable< Subclass, T > Class Template Reference

Barton–Nackman trick implementation. More...

#include <comparable.hpp>

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: