sprint 1-alpha
Classes | Namespaces | Defines
sprint/singleton.h File Reference

singleton class More...

Go to the source code of this file.

Classes

class  sprint::singleton< T >
 A singleton. More...

Namespaces

namespace  sprint
 

Sprint is a lightweight c++ library to handle different task with crossplatform attention (trying to compile both on MSVC and Mingw on WIn32 and GCC on Linux.


Defines

#define SINGLETON_INSTANCE(T)   T & sprint::singleton<T>::Instance() { static T obj; return obj; }
 allocate singleton in only one object file

Detailed Description

singleton class

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines