Provides only one instance of a type. More...
#include <singleton.hpp>
Public Types | |
typedef T | value_type |
Static Public Member Functions | |
static value_type & | instance () |
Access the instance of the class. | |
Provides only one instance of a type.
T | The type of the singleton. |
This class implements the singleton pattern. It ensures that only one instance of a class exists.
typedef T matador::singleton< T >::value_type |
Shortcut for the singletons type
|
inlinestatic |
Access the instance of the class.
The static instance method provides the access to the one instance of the concrete class.