24#include "MantidKernel/DllConfig.h"
89 __attribute__((noinline))
95 static T *instance = []() {
Manage the lifetime of a class intended to be a singleton.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
std::function< void()> SingletonDeleterFn
Type of deleter function.
MANTID_KERNEL_DLL void deleteOnExit(const SingletonDeleterFn &func)
Register the given deleter function to be called at exit.
Helper class which provides the Collimation Length for SANS instruments.
Policy class controlling creation of the singleton Implementation classes should mark their default c...
static void destroy(T *p)
delete an object instantiated using Create
static T * create()
create an object using the new operator