summaryrefslogtreecommitdiff
path: root/modules/codec/c++/data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++/data.hpp')
-rw-r--r--modules/codec/c++/data.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 33f301f..1c8db80 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -182,6 +182,21 @@ public:
return get() < rhs.get();
}
+ template<typename Enc>
+ constexpr bool operator>(const data<Schema,Enc>& rhs) const {
+ return get() > rhs.get();
+ }
+
+ template<typename Enc>
+ constexpr bool operator<=(const data<Schema,Enc>& rhs) const {
+ return get() <= rhs.get();
+ }
+
+ template<typename Enc>
+ constexpr bool operator>=(const data<Schema,Enc>& rhs) const {
+ return get() >= rhs.get();
+ }
+
/**
* Casts
*/