AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::Singleton< T > Class Template Reference

Meyers' singleton implementation. More...

#include <singleton.hpp>

+ Inheritance diagram for anch::Singleton< T >:
+ Collaboration diagram for anch::Singleton< T >:

Static Public Member Functions

static T & getInstance ()
 

Detailed Description

template<typename T>
class anch::Singleton< T >

Meyers' singleton implementation.

In C++11, this singleton is thread safe according to the standard.

Since
0.1
Author
Vincent Lachenal

Member Function Documentation

◆ getInstance()

template<typename T>
static T & anch::Singleton< T >::getInstance ( )
static

Get unique instance of a class.

Returns
the unique instance

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