hmbdc
simplify-high-performance-messaging-programming
|
RAII representing the lifespan of the underlying Singleton which also ganrantees the singularity of underlying Singleton. More...
#include <GuardedSingleton.hpp>
RAII representing the lifespan of the underlying Singleton which also ganrantees the singularity of underlying Singleton.
when the SingletonGuardian is constructored, the underlying Singleton is created; when the SingletonGuardian goes out of scope the dtor of the Singleton is called.
Singleton | the underlying type, which needs to be derived from GuardedSingleton |