Singleton

template<class T>
class Singleton

Singleton provides a templated implementation of the Singleton Design Pattern. This class takes a template parameter and provides behviour around that template that models a singleton - ie there is only one instance available during runtime.

Public Static Functions

static T *instance()

Return the single instance of T

Return

instance The singleton instance

static void destroy()

Destroy the single instance of T