Lines Matching refs:instance_
112 static std::shared_ptr<T> instance_; // Record the created DelayedSingleton instance.
117 std::shared_ptr<T> DelayedSingleton<T>::instance_ = nullptr;
125 if (instance_ == nullptr) {
127 if (instance_ == nullptr) {
129 instance_ = temp;
133 return instance_;
140 if (instance_ != nullptr) {
141 instance_.reset();
142 instance_ = nullptr;
167 static T* instance_; // Record the DelayedRefSingleton instance created.
172 T* DelayedRefSingleton<T>::instance_ = nullptr;
180 if (instance_ == nullptr) {
182 if (instance_ == nullptr) {
183 instance_ = new T();
187 return *instance_;
201 static T& GetInstance() { return instance_; }
204 static T instance_;
208 T Singleton<T>::instance_;