diff options
Diffstat (limited to 'ACE/ace/Refcounted_Auto_Ptr.h')
-rw-r--r-- | ACE/ace/Refcounted_Auto_Ptr.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ACE/ace/Refcounted_Auto_Ptr.h b/ACE/ace/Refcounted_Auto_Ptr.h index 782f9ab85db..1647d862270 100644 --- a/ACE/ace/Refcounted_Auto_Ptr.h +++ b/ACE/ace/Refcounted_Auto_Ptr.h @@ -52,7 +52,7 @@ public: /// Constructor that initializes an ACE_Refcounted_Auto_Ptr to /// the specified pointer value. - ACE_Refcounted_Auto_Ptr (X *p = 0); + explicit ACE_Refcounted_Auto_Ptr (X *p = 0); /// Copy constructor binds the new ACE_Refcounted_Auto_Ptr to the /// representation object referenced by @a r. @@ -68,7 +68,7 @@ public: /// ACE_Refcounted_Auto_Ptr_Rep. An ACE_Refcounted_Auto_Ptr_Rep /// is created if necessary. void operator = (const ACE_Refcounted_Auto_Ptr<X, ACE_LOCK> &r); - + /// Equality operator that returns @c true if both /// ACE_Refcounted_Auto_Ptr objects point to the same underlying /// representation. It does not compare the actual pointers. @@ -86,6 +86,12 @@ public: /// Accessor method. X &operator *() const; + + /// Check rep easily. + bool operator !() const; + + /// Check rep easily. + operator bool () const; /// Releases the reference to the underlying representation object. /// @retval The pointer value prior to releasing it. |