Evo C++ Library v0.5.1
Classes | Static Public Member Functions | List of all members
Singleton< T > Struct Template Reference

#include <evo/thread.h>

Detailed Description

template<class T>
struct evo::Singleton< T >

Manages a singleton instance for given type.

Template Parameters
TType to wrap

Static Public Member Functions

static T * instance ()
 Get singleton instance. More...
 

Member Function Documentation

◆ instance()

static T* instance ( )
inlinestatic

Get singleton instance.

Returns
Pointer to singleton instance, never NULL

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