Basic support for the singleton pattern. More...
#include <ql/patterns/singleton.hpp>
Static Public Member Functions | |
static T & | instance () |
access to the unique instance | |
Basic support for the singleton pattern.
The typical use of this class is:
which, albeit sub-optimal, frees one from the concerns of creating and managing the unique instance and can serve later as a single implemementation point should synchronization features be added.