33#ifndef SINGLETON_DEFINITIONS_H
34#define SINGLETON_DEFINITIONS_H
46 template<
typename T >
57#ifdef WOSS_NS_MIRACLE_SUPPORT
92 static auto the_instance = std::make_unique<T>();
96#ifdef WOSS_NS_MIRACLE_SUPPORT
100 static auto the_instance =
new T();
Singleton design pattern template.
Definition singleton-definitions.h:47
Singleton & operator=(const Singleton ©)=delete
static T * instance_ptr()
Definition singleton-definitions.h:98
static T & instance()
Definition singleton-definitions.h:90
Singleton(const Singleton ©)=delete
Singleton(Singleton &&tmp)=delete
Singleton & operator=(Singleton &&tmp)=delete
Definition ac-toolbox-arr-asc-reader.h:44