hmbdc
simplify-high-performance-messaging-programming
 All Classes Namespaces Functions Variables Friends Pages
List of all members
hmbdc::pattern::SingletonPlacementGuardian< Singleton > Class Template Reference

similar to SingletonGuardian, but supports placement new of the underlying Singleton More...

#include <GuardedSingleton.hpp>

Detailed Description

template<typename Singleton>
class hmbdc::pattern::SingletonPlacementGuardian< Singleton >

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.

Template Parameters
Singletonthe underlying type, which needs to be derived from GuardedSingleton

The documentation for this class was generated from the following file: