Loki  0.1.7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
Loki::DeletableSingleton< T > Struct Template Reference

#include <Singleton.h>

Static Public Member Functions

static void GracefulDelete ()
 delete singleton object manually
 

Detailed Description

template<class T>
struct Loki::DeletableSingleton< T >

A DeletableSingleton allows the instantiated singleton to be destroyed at any time. The singleton can be reinstantiated at any time, even during program termination. If the singleton exists when the program terminates, it will be automatically deleted.

Usage:
The singleton can be deleted manually:

DeletableSingleton<MyClass>::GracefulDelete();


The documentation for this struct was generated from the following file: