template class Core::Portable::Singleton

Template for singleton created on heap upon first request.

#include <coresingleton.h>

template <class T>
class Singleton: public Core::Portable::Deletable
{
public:
    // methods

    static T& instance();
};

Inherited Members

public:
    // methods

    static void addInstance(Deletable* instance);