Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class OnlyOne
- {
- public:
- static OnlyOne& const Instance()
- {
- static OnlyOne theSingleInstance;
- return theSingleInstance;
- }
- private:
- OnlyOne(){}
- OnlyOne(OnlyOne& root){}
- OnlyOne& operator=(OnlyOne&){}
- };
Add Comment
Please, Sign In to add comment