summaryrefslogtreecommitdiff
path: root/src/ints
diff options
context:
space:
mode:
Diffstat (limited to 'src/ints')
-rw-r--r--src/ints/wrap.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ints/wrap.hpp b/src/ints/wrap.hpp
index 25b03c1..2c8cd20 100644
--- a/src/ints/wrap.hpp
+++ b/src/ints/wrap.hpp
@@ -62,6 +62,21 @@ namespace ints
{
return l._value < r._value;
}
+ template<class W, typename=typename W::wrapped_type>
+ bool operator > (W l, W r)
+ {
+ return l._value > r._value;
+ }
+ template<class W, typename=typename W::wrapped_type>
+ bool operator <= (W l, W r)
+ {
+ return l._value <= r._value;
+ }
+ template<class W, typename=typename W::wrapped_type>
+ bool operator >= (W l, W r)
+ {
+ return l._value >= r._value;
+ }
template<class T>
struct Sub : T