xref: /onnv-gate/usr/src/cmd/man/src/util/nsgmls.src/include/Owner.cxx (revision 0:68f95e015346)
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 Owner_DEF_INCLUDED
6 #define Owner_DEF_INCLUDED 1
7 
8 #ifdef SP_NAMESPACE
9 namespace SP_NAMESPACE {
10 #endif
11 
12 template<class T>
~Owner()13 Owner<T>::~Owner()
14 {
15   if (p_)
16     delete p_;
17 }
18 
19 template<class T>
del()20 void Owner<T>::del()
21 {
22   delete p_;
23 }
24 
25 #ifdef SP_NAMESPACE
26 }
27 #endif
28 
29 #endif /* not Owner_DEF_INCLUDED */
30