![]() |
VSM C++ SDK
Vehicle Specific Modules SDK
|
Helper class for singletons instantiation. More...
#include <singleton.h>
Static Public Member Functions | |
static std::shared_ptr< T > | Create () |
Get singleton instance for a class which does not have default constructor. More... | |
template<typename... Args> | |
static std::shared_ptr< T > | Create (Args &&...args) |
Create singleton instance. More... | |
Helper class for singletons instantiation.
It deals with classes both having and not having default constructor.
|
inlinestatic |
Get singleton instance for a class which does not have default constructor.
It is never created without arguments, so return null.
|
inlinestatic |
Create singleton instance.
args | Arguments for singleton class constructor. |