Guest User

Untitled

a guest
Jul 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. class OnlyOne
  2. {
  3. public:
  4.         static OnlyOne& const Instance()
  5.         {
  6.                 static OnlyOne theSingleInstance;
  7.                 return theSingleInstance;
  8.         }
  9. private:        
  10.         OnlyOne(){}
  11.         OnlyOne(OnlyOne& root){}
  12. OnlyOne& operator=(OnlyOne&){}
  13. };
Add Comment
Please, Sign In to add comment