A Phoenix Singleton is a singleton that can be recreated after it is destroyed.
An example where this might be useful is in a logger that might be destroyed on shutdown, but then another error occurs that you want to log; so you bring back the logger singleton.
Reference: Modern C++ Design by Andrei Alexandrescu. Addison-Wesley, 2001, pp. 137-138.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment