1 // Copyright (c) 1994 James Clark 2 // See the file COPYING for copying permission. 3 #pragma ident "%Z%%M% %I% %E% SMI" 4 5 #ifndef CopyOwner_DEF_INCLUDED 6 #define CopyOwner_DEF_INCLUDED 1 7 8 #ifdef SP_NAMESPACE 9 namespace SP_NAMESPACE { 10 #endif 11 12 template<class T> CopyOwner(const CopyOwner<T> & o)13CopyOwner<T>::CopyOwner(const CopyOwner<T> &o) 14 : Owner<T>(o.pointer() ? o.pointer()->copy() : 0) 15 { 16 } 17 18 template<class T> operator =(const CopyOwner<T> & o)19void CopyOwner<T>::operator=(const CopyOwner<T> &o) 20 { 21 Owner<T>::operator=(o.pointer() ? o.pointer()->copy() : 0); 22 } 23 24 #ifdef SP_NAMESPACE 25 } 26 #endif 27 28 #endif /* not CopyOwner_DEF_INCLUDED */ 29