AnCH Framework  0.1
Another C++ Hack Framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Static Public Member Functions | List of all members
anch::Singleton< T > Class Template Reference

Meyers' singleton implemtation. 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 implemtation.

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

Since
0.1
Author
Vincent Lachenal

Member Function Documentation

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

Get unique instance of a class.

Returns
the unique instance

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