diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-19 09:10:19 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-19 09:10:19 +0000 |
commit | f9606f4f257e642e04f8c84315b0c8f323fe65e6 (patch) | |
tree | a681f895cf5a9b8a4f7ab6603ee4fd3a55ca0305 /TAO/tao/Seq_Var_T.cpp | |
parent | 10fc1a52ad4bc0d1d3d6716d18f77d04022bd2a8 (diff) | |
download | ATCD-f9606f4f257e642e04f8c84315b0c8f323fe65e6.tar.gz |
ChangeLogTag: Wed Apr 19 07:44:49 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/Seq_Var_T.cpp')
-rw-r--r-- | TAO/tao/Seq_Var_T.cpp | 51 |
1 files changed, 16 insertions, 35 deletions
diff --git a/TAO/tao/Seq_Var_T.cpp b/TAO/tao/Seq_Var_T.cpp index e8e38e2eddb..a9929293475 100644 --- a/TAO/tao/Seq_Var_T.cpp +++ b/TAO/tao/Seq_Var_T.cpp @@ -13,23 +13,23 @@ TAO_BEGIN_VERSIONED_NAMESPACE_DECL -template<typename T, typename T_elem> -TAO_Seq_Var_Base_T<T,T_elem>::TAO_Seq_Var_Base_T ( - const TAO_Seq_Var_Base_T<T,T_elem> & p) +template<typename T> +TAO_Seq_Var_Base_T<T>::TAO_Seq_Var_Base_T ( + const TAO_Seq_Var_Base_T<T> & p) : ptr_ (p.ptr_ ? new T (*p.ptr_) : 0) { } // **************************************************************************** -template<typename T, typename T_elem> -TAO_FixedSeq_Var_T<T,T_elem> & -TAO_FixedSeq_Var_T<T,T_elem>::operator= ( - const TAO_FixedSeq_Var_T<T,T_elem> & p) +template<typename T> +TAO_FixedSeq_Var_T<T> & +TAO_FixedSeq_Var_T<T>::operator= ( + const TAO_FixedSeq_Var_T<T> & p) { // Strongly exception safe assignment using copy and non-throwing // swap technique. - TAO_FixedSeq_Var_T<T,T_elem> tmp (p); + TAO_FixedSeq_Var_T<T> tmp (p); T * old_ptr = this->ptr_; this->ptr_ = tmp.ptr_; @@ -39,13 +39,13 @@ TAO_FixedSeq_Var_T<T,T_elem>::operator= ( } // Fixed-size types only. -template<typename T, typename T_elem> -TAO_FixedSeq_Var_T<T,T_elem> & -TAO_FixedSeq_Var_T<T,T_elem>::operator= (const T & p) +template<typename T> +TAO_FixedSeq_Var_T<T> & +TAO_FixedSeq_Var_T<T>::operator= (const T & p) { // Strongly exception safe assignment using copy and non-throwing // swap technique. - TAO_FixedSeq_Var_T<T,T_elem> tmp (p); + TAO_FixedSeq_Var_T<T> tmp (p); T * old_ptr = this->ptr_; this->ptr_ = tmp.ptr_; @@ -56,32 +56,13 @@ TAO_FixedSeq_Var_T<T,T_elem>::operator= (const T & p) // **************************************************************************** -template<typename T, typename T_elem> -TAO_VarSeq_Var_T<T,T_elem> & -TAO_VarSeq_Var_T<T,T_elem>::operator= (const TAO_VarSeq_Var_T<T,T_elem> & p) +template<typename T> +TAO_VarSeq_Var_T<T> & +TAO_VarSeq_Var_T<T>::operator= (const TAO_VarSeq_Var_T<T> & p) { // Strongly exception safe assignment using copy and non-throwing // swap technique. - TAO_VarSeq_Var_T<T,T_elem> tmp (p); - - T * old_ptr = this->ptr_; - this->ptr_ = tmp.ptr_; - tmp.ptr_ = old_ptr; - - return *this; -} - -// **************************************************************************** - -template<typename T, typename T_elem> -TAO_MngSeq_Var_T<T,T_elem> & -TAO_MngSeq_Var_T<T,T_elem>::operator= ( - const TAO_MngSeq_Var_T<T,T_elem> & p - ) -{ - // Strongly exception safe assignment using copy and non-throwing - // swap technique. - TAO_MngSeq_Var_T<T,T_elem> tmp (p); + TAO_VarSeq_Var_T<T> tmp (p); T * old_ptr = this->ptr_; this->ptr_ = tmp.ptr_; |