Feel++  0.91.4
Public Types | Static Public Member Functions | List of all members
Feel::Singleton< T > Class Template Reference

implement the Singleton pattern More...

#include <singleton.hpp>

Public Types

typedef T singleton_type
 
typedef PolicyFeelTimeDefault
< singleton_type > 
feeltime_policy
 
typedef PolicyCreationUsingNew
< singleton_type > 
creation_policy
 

Static Public Member Functions

static singleton_type & instance ()
 

Detailed Description

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

implement the Singleton pattern

A Singleton pattern implementation using the ideas from Alexandrescu's book "modern C++ design" http://www.moderncppdesign.com/

Author
Christophe Prud'homme chris.nosp@m.toph.nosp@m.e.pru.nosp@m.dhom.nosp@m.me@uj.nosp@m.f-gr.nosp@m.enobl.nosp@m.e.fr

Member Function Documentation

template<class T >
T & Feel::Singleton< T >::instance ( )
inlinestatic

return the instance of the singleton