1 #ifndef TAO_SEQ_VAR_T_CPP
2 #define TAO_SEQ_VAR_T_CPP
4 #include "tao/Seq_Var_T.h"
6 #if !defined (__ACE_INLINE__)
7 #include "tao/Seq_Var_T.inl"
8 #endif /* __ACE_INLINE__ */
10 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 TAO_Seq_Var_Base_T
<T
>::TAO_Seq_Var_Base_T (const TAO_Seq_Var_Base_T
<T
> & p
)
14 : ptr_ (p
.ptr_
? new T (*p
.ptr_
) : nullptr)
18 // ****************************************************************************
21 TAO_FixedSeq_Var_T
<T
> &
22 TAO_FixedSeq_Var_T
<T
>::operator= (const TAO_FixedSeq_Var_T
<T
> & p
)
24 // Strongly exception safe assignment using copy and non-throwing
26 TAO_FixedSeq_Var_T
<T
> tmp (p
);
28 T
* old_ptr
= this->ptr_
;
29 this->ptr_
= tmp
.ptr_
;
35 // Fixed-size types only.
37 TAO_FixedSeq_Var_T
<T
> &
38 TAO_FixedSeq_Var_T
<T
>::operator= (const T
& p
)
40 // Strongly exception safe assignment using copy and non-throwing
42 TAO_FixedSeq_Var_T
<T
> tmp (p
);
44 T
* old_ptr
= this->ptr_
;
45 this->ptr_
= tmp
.ptr_
;
51 // ****************************************************************************
55 TAO_VarSeq_Var_T
<T
>::operator= (const TAO_VarSeq_Var_T
<T
> & p
)
57 // Strongly exception safe assignment using copy and non-throwing
59 TAO_VarSeq_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_SEQ_VAR_T_CPP */