32 #ifndef INTERNAL_CLASSES_SINGLETON_H_ 33 #define INTERNAL_CLASSES_SINGLETON_H_ 101 #ifndef NO_THREAD_LOCAL_ 104 std::is_nothrow_constructible<T>::value) {
108 thread_local
static T instance;
113 #endif // NO_THREAD_LOCAL_ Singleton policy class, used internally to implement the singleton pattern via CRTP (Curiously recurr...
Definition: singleton.h:80
Quantum++ main namespace.
Definition: codes.h:35
Singleton & operator=(const Singleton &)=delete
virtual ~Singleton()=default
static T & get_thread_local_instance() noexcept(std::is_nothrow_constructible< T >::value)
Definition: singleton.h:103
Singleton() noexcept=default
static T & get_instance() noexcept(std::is_nothrow_constructible< T >::value)
Definition: singleton.h:92