summaryrefslogtreecommitdiff
path: root/smartptr.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-05-16 00:02:31 +0000
committerweidai <weidai11@users.noreply.github.com>2003-05-16 00:02:31 +0000
commitc9f75009a5aebea315a544f19c37ead617a5dd62 (patch)
treebf937217f2ef50484de29e14afe933833ee627b6 /smartptr.h
parentde0f05d787a6e8d9892ece40927ef7cb234a6216 (diff)
downloadcryptopp-git-c9f75009a5aebea315a544f19c37ead617a5dd62.tar.gz
misc optimizations
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 00dab210..c4f95753 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: