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