singleton.h
static D & get_instance(std::enable_if_t<!Singleton< Derived >::derived_is_default_constructible > *=nullptr)
Definition: singleton.h:82
static auto & instance_accessor()
Definition: singleton.h:130
Singleton base class To create a singleton class A do:
Definition: singleton.h:55
static std::enable_if_t< Singleton< D >::derived_is_default_constructible, D & > get_instance()
Definition: singleton.h:70
static void set_instance(Args &&... args)
Definition: singleton.h:120
static D * get_instance_ptr(std::enable_if_t<!Singleton< Derived >::derived_is_default_constructible > *=nullptr)
Definition: singleton.h:107
Definition: array_impl.cpp:28
static std::enable_if_t< Singleton< D >::derived_is_default_constructible, D * > get_instance_ptr()
Definition: singleton.h:97