/* Collection of code snippets by Arne Vajhøj */
/* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) */
#ifndef CLASSIC_SINGLETON_11_H
#define CLASSIC_SINGLETON_11_H

#include <iostream>

using namespace std;

class ClassicSingleton11
{
private:
    static ClassicSingleton11* instance;
    int SomeState;
    ClassicSingleton11() { SomeState = 123; }
public:
    ClassicSingleton11(const ClassicSingleton11& original) = delete;
    ClassicSingleton11& operator=(const ClassicSingleton11& original) = delete;
    static ClassicSingleton11& Instance();
    void SomeMethod() { cout << SomeState << endl; }
};

#endif
