summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-08-26 15:53:29 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-08-26 15:53:29 +0200
commit3f027144ea3b868d7dbf75231b993c410a2156fb (patch)
tree4a69b828d0a7595854c197f7770b1302a44863a7
parent182f6c2a6453a8e4c84bd64a234194d7b42ea07f (diff)
downloadATCD-3f027144ea3b868d7dbf75231b993c410a2156fb.tar.gz
Layout changes and removed commented out operation
* ACE/ace/Intrusive_Auto_Ptr.h:
-rw-r--r--ACE/ace/Intrusive_Auto_Ptr.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/ACE/ace/Intrusive_Auto_Ptr.h b/ACE/ace/Intrusive_Auto_Ptr.h
index 2a6955f129b..36ff94901b8 100644
--- a/ACE/ace/Intrusive_Auto_Ptr.h
+++ b/ACE/ace/Intrusive_Auto_Ptr.h
@@ -47,20 +47,17 @@ template <class X>
class ACE_Intrusive_Auto_Ptr
{
protected:
-
- /// Used to define a proper boolean conversion for "if (sp) ..."
+ /// Used to define a proper boolean conversion for "if (sp) ..."
static void unspecified_bool(ACE_Intrusive_Auto_Ptr<X>***){};
typedef void (*unspecified_bool_type)(ACE_Intrusive_Auto_Ptr<X>***);
public:
-
/// Enables "if (sp) ..."
operator unspecified_bool_type() const
{
return rep_ == 0 ? 0: unspecified_bool;
}
-
/// Constructor that initializes an ACE_Intrusive_Auto_Ptr to
/// the specified pointer value.
ACE_Intrusive_Auto_Ptr (X *p = 0, bool addref = true);
@@ -103,14 +100,10 @@ public:
/// Get the reference count value.
long count (void) const;
- /// Returns @c true if this object does not contain a valid pointer.
- // bool null (void) const;
-
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
protected:
-
/// Protect operations on the ACE_Intrusive_Auto_Ptr.
X *rep_;
};