1 #ifndef TAO_VAROUT_T_CPP
2 #define TAO_VAROUT_T_CPP
4 #include "tao/VarOut_T.h"
6 #if !defined (__ACE_INLINE__)
7 #include "tao/VarOut_T.inl"
8 #endif /* __ACE_INLINE__ */
10 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 TAO_Var_Base_T
<T
>::TAO_Var_Base_T (const TAO_Var_Base_T
<T
> & p
)
14 : ptr_ (p
.ptr_
? new T (*p
.ptr_
) : nullptr)
18 // *************************************************************
22 TAO_Fixed_Var_T
<T
>::operator= (const TAO_Fixed_Var_T
<T
> & p
)
24 // Strongly exception safe assignment using copy and non-throwing
26 TAO_Fixed_Var_T
<T
> tmp (p
);
28 T
* old_ptr
= this->ptr_
;
29 this->ptr_
= tmp
.ptr_
;
35 // Fixed-size types only.
38 TAO_Fixed_Var_T
<T
>::operator= (const T
& p
)
40 // Strongly exception safe assignment using copy and non-throwing
42 TAO_Fixed_Var_T
<T
> tmp (p
);
44 T
* old_ptr
= this->ptr_
;
45 this->ptr_
= tmp
.ptr_
;
51 // *************************************************************
55 TAO_Var_Var_T
<T
>::operator= (const TAO_Var_Var_T
<T
> & p
)
57 // Strongly exception safe assignment using copy and non-throwing
59 TAO_Var_Var_T
<T
> tmp (p
);
61 T
* old_ptr
= this->ptr_
;
62 this->ptr_
= tmp
.ptr_
;
68 TAO_END_VERSIONED_NAMESPACE_DECL
70 #endif /* TAO_VAROUT_T_CPP */