singletons

J

johny smith

Can someone point me to some good articles on how to create singleton
objects and how to access operations within a singleton object.

I did a search and found a couple of papers, but am looking for more.

Thanks alot
 
J

Jonathan Turkanis

johny smith said:
Can someone point me to some good articles on how to create singleton
objects and how to access operations within a singleton object.

1. Design Patterns, by Gamma et al, Ch. 3 -- classic description of
the pattern
2. Modern C++ Design, Alexandrescu Ch. 6 -- thorough discussion and
ingenious implementation of C++ singletons

Once you've absorbed these, you might want to look at the recents
stuff on the double-checked locking pattern by Alexandrescu and
Meyers.

Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top