diff --git a/utils/total_ordering.hpp b/utils/total_ordering.hpp new file mode 100644 index 000000000..6272c56a9 --- /dev/null +++ b/utils/total_ordering.hpp @@ -0,0 +1,16 @@ +#pragma once + +template +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); + } + +};