diff options
Diffstat (limited to 'TAO/tao/Object_KeyC.cpp')
-rw-r--r-- | TAO/tao/Object_KeyC.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/TAO/tao/Object_KeyC.cpp b/TAO/tao/Object_KeyC.cpp index 7b6d0db4b97..2730a72180f 100644 --- a/TAO/tao/Object_KeyC.cpp +++ b/TAO/tao/Object_KeyC.cpp @@ -49,3 +49,26 @@ CORBA::TypeCode_ptr TAO_tc_ObjectKey = &_tc_TAO_tc_TAO_ObjectKey; // **************************************************************** + +int +operator== (const TAO_ObjectKey &lhs, + const TAO_ObjectKey &rhs) +{ + if (rhs.length () != lhs.length ()) + return 0; + + for (CORBA::ULong i = 0; + i < rhs.length (); + ++i) + if (rhs[i] != lhs[i]) + return 0; + + return 1; +} + +int +operator!= (const TAO_ObjectKey &lhs, + const TAO_ObjectKey &rhs) +{ + return !(lhs == rhs); +} |