diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-07-22 00:51:57 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2004-07-22 00:51:57 +0000 |
commit | a2828f6ae67c3d7294118a8144b1b2ec431237c4 (patch) | |
tree | faff40f3429fb7fb70249c83afd5378f92ebdb31 /misc.h | |
parent | e87d537834e72b242b4c16b99f0a40586940104b (diff) | |
download | cryptopp-a2828f6ae67c3d7294118a8144b1b2ec431237c4.tar.gz |
fix documentation, fix PanamaMAC, fix algorithm names
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@186 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -33,11 +33,13 @@ class CRYPTOPP_DLL Empty { }; +//! _ template <class BASE1, class BASE2> class CRYPTOPP_NO_VTABLE TwoBases : public BASE1, public BASE2 { }; +//! _ template <class BASE1, class BASE2, class BASE3> class CRYPTOPP_NO_VTABLE ThreeBases : public BASE1, public BASE2, public BASE3 { @@ -65,9 +67,10 @@ struct NewObject T* operator()() const {return new T;} }; -// This function safely initializes a static object in a multithreaded environment without using locks. -// It may leak memory when two threads try to initialize the static object at the same time -// but this should be acceptable since each static object is only initialized once per session. +/*! This function safely initializes a static object in a multithreaded environment without using locks. + It may leak memory when two threads try to initialize the static object at the same time + but this should be acceptable since each static object is only initialized once per session. +*/ template <class T, class F = NewObject<T>, int instance=0> class Singleton { |