27 #ifndef INTERNAL_CLASSES_SINGLETON_H_ 28 #define INTERNAL_CLASSES_SINGLETON_H_ 99 #ifndef NO_THREAD_LOCAL_ 102 noexcept(
std::is_nothrow_constructible<T>::value)
107 thread_local
static T instance;
112 #endif // NO_THREAD_LOCAL_ Singleton policy class, used internally to implement the singleton pattern via CRTP (Curiously recurr...
Definition: singleton.h:76
Quantum++ main namespace.
Definition: codes.h:30
Singleton & operator=(const Singleton &)=delete
virtual ~Singleton()=default
static T & get_thread_local_instance() noexcept(std::is_nothrow_constructible< T >::value)
Definition: singleton.h:101
Singleton() noexcept=default
static T & get_instance() noexcept(std::is_nothrow_constructible< T >::value)
Definition: singleton.h:89