summaryrefslogtreecommitdiff
path: root/smartptr.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-05-16 00:02:31 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-05-16 00:02:31 +0000
commit36fa3fc2b13356f20ed58c37cdeb68c830c59829 (patch)
treebf937217f2ef50484de29e14afe933833ee627b6 /smartptr.h
parentb2f2c1f2c534d20cd06aed7717b19b8ab101e254 (diff)
downloadcryptopp-36fa3fc2b13356f20ed58c37cdeb68c830c59829.tar.gz
misc optimizations
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@68 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'smartptr.h')
-rw-r--r--smartptr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/smartptr.h b/smartptr.h
index 00dab21..c4f9575 100644
--- a/smartptr.h
+++ b/smartptr.h
@@ -6,6 +6,14 @@
NAMESPACE_BEGIN(CryptoPP)
+template<class T> class simple_ptr
+{
+public:
+ simple_ptr() : m_p(NULL) {}
+ ~simple_ptr() {delete m_p;}
+ T *m_p;
+};
+
template<class T> class member_ptr
{
public: