Newsgroup: comp.lang.c++
Subject: Singleton class in C++
From: bob smith <bob@...>
Date: Mon, 19 Aug 2013 17:54:40 -0700 (PDT)
If someone asks you to write a Singleton class in C++, can someone help me see what the answer would be?
In particular, I don't know if the getInstance() function ought to return Singleton* or Singleton&.
I'm also concerned about when and how the memory for this class will be deallocated.
Thanks.
Subject: Singleton class in C++
From: bob smith <bob@...>
Date: Mon, 19 Aug 2013 17:54:40 -0700 (PDT)
If someone asks you to write a Singleton class in C++, can someone help me see what the answer would be?
In particular, I don't know if the getInstance() function ought to return Singleton* or Singleton&.
I'm also concerned about when and how the memory for this class will be deallocated.
Thanks.
via Usenet Forums - Usenet Search,Free Usenet - comp.lang.c++ http://www.pocketbinaries.com/usenet-forums/showthread.php?69346-Singleton-class-in-C&goto=newpost
View all the progranning help forums at:
http://www.pocketbinaries.com/usenet-forums/forumdisplay.php?128-Coding-forums
No comments:
Post a Comment