hmbdc
simplify-high-performance-messaging-programming
Static Public Member Functions | Friends | List of all members
hmbdc::pattern::GuardedSingleton< Singleton > Class Template Reference

base for the Singleton that works with SingletonGuardian More...

#include <GuardedSingleton.hpp>

Static Public Member Functions

static Singleton & instance ()
 
static bool initialized ()
 

Friends

struct SingletonGuardian< Singleton >
 

Detailed Description

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

base for the Singleton that works with SingletonGuardian

a good practice is to declare the ctor of the derived class private and friend the derived with the SingletonGuardian<derived>

Template Parameters
Singletonthe derived type

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