diff options
Diffstat (limited to 'include/value.h')
-rw-r--r-- | include/value.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/value.h b/include/value.h index b732616..7615997 100644 --- a/include/value.h +++ b/include/value.h @@ -263,6 +263,17 @@ public: Value operator%(double value); /** + * Comparison operators + * @param value + */ + template <typename T> bool operator==(const T &value) const { return (T)*this == value; } + template <typename T> bool operator!=(const T &value) const { return (T)*this == value; } + template <typename T> bool operator<=(const T &value) const { return (T)*this == value; } + template <typename T> bool operator>=(const T &value) const { return (T)*this == value; } + template <typename T> bool operator< (const T &value) const { return (T)*this == value; } + template <typename T> bool operator> (const T &value) const { return (T)*this == value; } + + /** * The type of object * @return Type */ |