![]() |
#include <utils/MeyerSingleton.hpp>
Static Public Member Functions | |
static T * | instance () |
Protected Member Functions | |
MeyerSingleton () | |
Singleton template class implementing the Meyer's singleton design. This implementation is thread safe in C++11.
Example of use to design an Example class as a singleton
|
inlineprotected |
|
inlinestatic |
Returns a pointer to the singleton object. Instantiates the class if it not has not been instantiated before.