So, classic simple Singleton realization is following:
class Singleton { private: static Singleton* singleton; Singleton() {} public: static Sing
When a variable local to a function is declared "static", it means that it isn't allocated on the stack - and that its value persists from one call to the next.