Electroneum
Language::Singleton< T > Class Template Reference

Single helper class. More...

#include <singleton.h>

Static Public Member Functions

static Tinstance ()
 

Detailed Description

template<class T>
class Language::Singleton< T >

Single helper class.

Do Language::Singleton<YourClass>::instance() to create a singleton instance of YourClass.

Definition at line 51 of file singleton.h.

Member Function Documentation

◆ instance()

template<class T >
static T* Language::Singleton< T >::instance ( )
inlinestatic

Definition at line 57 of file singleton.h.

58  {
59  static T* obj = new T;
60  return obj;
61  }
const uint32_t T[512]
Here is the caller graph for this function:

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