Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
#include "<strong>Poco</strong>/SingletonHolder.h"<br />
class MySingleton<br />
{<br />
public:<br />
MySingleton()<br />
{<br />
// ...<br />
}<br />
~MySingleton()<br />
{<br />
// ...<br />
}<br />
// ...<br />
};<br />
static MySingleton& instance()<br />
{<br />
static <strong>Poco</strong>::SingletonHolder sh;<br />
return *sh.get();<br />
}