Singleton< T, F, instance > Class Template Reference

#include <misc.h>

List of all members.


Detailed Description

template<class T, class F = NewObject<T>, int instance = 0>
class Singleton< T, F, instance >

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.

Definition at line 79 of file misc.h.

Public Member Functions

 Singleton (F objectFactory=F())
const T & Ref (...) const


The documentation for this class was generated from the following file:
Generated on Sat Dec 23 02:07:34 2006 for Crypto++ by  doxygen 1.5.1-p1