diff options
author | weidai <weidai11@users.noreply.github.com> | 2003-05-16 00:02:31 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2003-05-16 00:02:31 +0000 |
commit | c9f75009a5aebea315a544f19c37ead617a5dd62 (patch) | |
tree | bf937217f2ef50484de29e14afe933833ee627b6 /smartptr.h | |
parent | de0f05d787a6e8d9892ece40927ef7cb234a6216 (diff) | |
download | cryptopp-git-c9f75009a5aebea315a544f19c37ead617a5dd62.tar.gz |
misc optimizations
Diffstat (limited to 'smartptr.h')
-rw-r--r-- | smartptr.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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: |