diff options
Diffstat (limited to 'include/hashmember.h')
-rw-r--r-- | include/hashmember.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hashmember.h b/include/hashmember.h index 9933445..65ca23d 100644 --- a/include/hashmember.h +++ b/include/hashmember.h @@ -317,6 +317,17 @@ public: Value operator%(double value) { return this->value() % 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; } + + /** * Handle calls to the hash member * @param param0 * @param param1 |