dbertoni 01/05/10 10:56:25
Modified: c/src/XPath XObject.hpp
Log:
Added operator<() so XObjectPtr can be a key in a map or a value in a set.
Revision Changes Path
1.19 +11 -0 xml-xalan/c/src/XPath/XObject.hpp
Index: XObject.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/XObject.hpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- XObject.hpp 2001/05/02 15:52:59 1.18
+++ XObject.hpp 2001/05/10 17:56:21 1.19
@@ -396,6 +396,7 @@
public:
friend bool operator==(const XObjectPtr&, const XObjectPtr&);
+ friend bool operator<(const XObjectPtr&, const XObjectPtr&);
/**
* Create an XObjectPtr.
@@ -498,6 +499,16 @@
const XObjectPtr& theRHS)
{
return !(theLHS == theRHS);
+}
+
+
+
+inline bool
+operator<(
+ const XObjectPtr& theLHS,
+ const XObjectPtr& theRHS)
+{
+ return theLHS.m_xobjectPtr < theRHS.m_xobjectPtr;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]