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>
Public Member Functions | |
template<typename... Args> | |
SingletonGuardian (Args &&...) | |
template<typename... Args> | |
SingletonGuardian (Args &&...args) | |
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 |