diff options
Diffstat (limited to 'cpp/include/Ice/Handle.h')
-rw-r--r-- | cpp/include/Ice/Handle.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/cpp/include/Ice/Handle.h b/cpp/include/Ice/Handle.h index b94cd81e079..83f72cb77bc 100644 --- a/cpp/include/Ice/Handle.h +++ b/cpp/include/Ice/Handle.h @@ -185,54 +185,6 @@ public: } }; -template<typename T, typename U> -inline bool operator==(const Handle<T>& a, const Handle<U>& b) -{ - T* ap = a.get(); - U* bp = b.get(); - if (ap == bp) - { - return true; - } - else if (!ap) - { - assert(bp); - return false; - } - else - { - return *ap == *bp; - } -} - -template<typename T, typename U> -inline bool operator!=(const Handle<T>& a, const Handle<U>& b) -{ - return !operator==(a, b); -} - -template<typename T, typename U> -inline bool operator<(const Handle<T>& a, const Handle<U>& b) -{ - T* ap = a.get(); - U* bp = b.get(); - if (!ap || !bp) - { - if (!ap && bp) - { - return true; - } - else - { - return false; - } - } - else - { - return *a.get() < *b.get(); - } -} - } #endif |