skeleton for total ordering

This commit is contained in:
Dominik Tomičević 2015-11-21 13:57:15 +01:00
parent 655b4c04dd
commit 12628f3689

16
utils/total_ordering.hpp Normal file
View File

@ -0,0 +1,16 @@
#pragma once
template <class Derived>
struct TotalOrdering
{
friend bool operator!=(const Derived& a, const Derived& b)
{
return !(a == b);
}
friend bool operator>(const Derived& a, const Derived& b)
{
return !(a == b);
}
};