#include <singleton.hpp>
implement the Singleton pattern
A Singleton pattern implementation using the ideas from Alexandrescu's book "modern C++ design" http://www.moderncppdesign.com/
Public Types | |
|
typedef PolicyCreationUsingNew < singleton_type > | creation_policy |
|
typedef PolicyFeelTimeDefault < singleton_type > | feeltime_policy |
| typedef T | singleton_type |
Static Public Member Functions | |
| static singleton_type & | instance () |
|
inlinestatic |
return the instance of the singleton
1.8.5