Click here to Skip to main content
15,905,776 members
Articles / Programming Languages / C++

A Guaranteed Singly in Your Application

9 Feb 2010CPOL 369   2
Hello.It would be possible to use the following techniquewhen you need a single instance of an object in your process...Therefor there are two steps only :)Step 1. Declare your singly with a protected/private constructorclass CSinglyObj{...protected: CSinglyObj(); ...
Only logged in members can view this content

Please go to the C++ Table of Contents to view the list of available articles in this section.