138# define Make_Singleton(name) \
144 [[nodiscard]] static name & get_instance() noexcept \
146 static name instance; \
150 name(const name &) = delete; \
151 name(name &&) = delete; \
152 name & operator = (const name &) = delete; \
153 name & operator = (name &&) = delete;
A minimal singleton class implementation.
static Singleton & get_instance() noexcept
Returns the unique instance of the Singleton.
Singleton & operator=(const Singleton &)=delete
Singleton()=default
Private constructor to prevent direct instantiation.