fork(1) download
  1. class Singleton
  2. {
  3. public:
  4. Singleton getInstance()
  5. {
  6. static Singleton instance;
  7. return instance;
  8. }
  9.  
  10. private:
  11. Singleton() {};
  12. Singleton(const Singleton &other);
  13. Singleton& operator = (const Singleton &other);
  14. };
  15.  
  16. int main()
  17. {
  18.  
  19. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty