3065 some functions in the tcp module can be static
[unleashed.git] / usr / src / cmd / man / src / util / nsgmls.src / include / CopyOwner.h
blob9ed9f946d18df39f09579b08b36fe45acfcd324b
1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
3 #pragma ident "%Z%%M% %I% %E% SMI"
5 #ifndef CopyOwner_INCLUDED
6 #define CopyOwner_INCLUDED 1
8 #include "Owner.h"
10 #ifdef SP_NAMESPACE
11 namespace SP_NAMESPACE {
12 #endif
14 template<class T>
15 class CopyOwner : public Owner<T> {
16 public:
17 CopyOwner() { }
18 CopyOwner(T *p) : Owner<T>(p) { }
19 CopyOwner(const CopyOwner<T> &);
20 void operator=(const CopyOwner<T> &o);
21 void operator=(T *p) { Owner<T>::operator=(p); }
24 #ifdef SP_NAMESPACE
26 #endif
28 #endif /* not CopyOwner_INCLUDED */
30 #ifdef SP_DEFINE_TEMPLATES
31 #include "CopyOwner.cxx"
32 #endif