hmbdc
simplify-high-performance-messaging-programming
|
similar to SingletonGuardian, but supports placement new of the underlying Singleton More...
#include <GuardedSingleton.hpp>
similar to SingletonGuardian, but supports placement new of the underlying Singleton
when the SingletonPlacementGuardian is constructored with an address, the underlying Singleton is created using placement new; when the SingletonGuardian goes out of scope the dtor of the Singleton is called properly.
Singleton | the underlying type, which needs to be derived from GuardedSingleton |