1 #ifndef PROTON_INTERNAL_COMPARABLE_HPP
2 #define PROTON_INTERNAL_COMPARABLE_HPP
30 template <
class T>
class comparable {
31 friend bool operator>(
const T &a,
const T &b) {
return b < a; }
32 friend bool operator<=(
const T &a,
const T &b) {
return !(a > b); }
33 friend bool operator>=(
const T &a,
const T &b) {
return !(a < b); }
34 friend bool operator!=(
const T &a,
const T &b) {
return !(a == b); }
40 #endif // PROTON_INTERNAL_COMPARABLE_HPP