Virgil IoT KIT
Static Public Member Functions
VSQSingleton< T, D > Class Template Reference

Singleton implementation. More...

#include <VSQSingleton.h>

Static Public Member Functions

static T & instance ()
 Get static instance. More...
 

Detailed Description

template<typename T, typename D = T>
class VSQSingleton< T, D >

Singleton implementation.

You can use D parameter as derived from T

Template Parameters
TBase class for D
DClass to be singleton

Member Function Documentation

◆ instance()

template<typename T , typename D = T>
static T& VSQSingleton< T, D >::instance ( )
inlinestatic

Get static instance.

Creates once D class instance and returns its base class T

Returns

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