Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Intrusive_Ref_Count_Base_T.inl
blobbf378bd9a0ea81073dd73e51f2d7443258b2a50f
1 // -*- C++ -*-
2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
4 template <typename T>
5 ACE_INLINE
6 TAO_Intrusive_Ref_Count_Base<T>::TAO_Intrusive_Ref_Count_Base ()
7   : refcount_(1)
8 {}
11 template <typename T>
12 ACE_INLINE
13 void
14 TAO_Intrusive_Ref_Count_Base<T>::_add_ref ()
16   ++this->refcount_;
20 template <typename T>
21 ACE_INLINE
22 void
23 TAO_Intrusive_Ref_Count_Base<T>::_remove_ref ()
25   CORBA::ULong const new_count = --this->refcount_;
27   if (new_count != 0)
28     {
29       return;
30     }
32   delete this;
35 TAO_END_VERSIONED_NAMESPACE_DECL