Template Class CSingleInstanceHelper
Defined in File single_instance_helper.h
Class Documentation
-
template<typename T>
class CSingleInstanceHelper Helper class to ensure a single instance of a type.
Usage: 1) Make the class a friend of CSingleInstanceHelper and provide a static Create function that calls CSingleInstanceHelper::Create with the appropriate arguments to create an instance of the class. The constructor of the class should be private to prevent creation of instances outside of the Create function.
2) Call the Create function of the class to create an instance. If an instance already exists, the Create function will return a shared pointer to the existing instance.
Public Static Functions