template class CCL::SharedSingleton

Singleton instance, released by caller.

#include <singleton.h>

template <class T>
class SharedSingleton
{
public:
    // methods

    static T* instance ();
    static T* peekInstance ();
    static Object* __createSingleton ();
};