FastLED 3.10.8
Loading...
Searching...
No Matches

◆ shared_ptr() [9/12]

template<typename T>
template<typename Y>
fl::shared_ptr< T >::shared_ptr ( const weak_ptr< Y > & weak)
explicit

Definition at line 209 of file weak_ptr.h.

209 : mPtr(nullptr), mControlBlock(nullptr) {
210 if (!weak.expired()) {
213 mPtr = weak.mPtr;
215 }
216 }
217 if (!mPtr) {
218 // If construction failed (object was destroyed), throw bad_weak_ptr equivalent
219 // For now, just leave as default-constructed (nullptr)
220 }
221}
detail::ControlBlockBase * mControlBlock
Definition shared_ptr.h:166
fl::atomic_u32 shared_count
Definition shared_ptr.h:37

References fl::FL_NO_EXCEPT, mControlBlock, mPtr, and weak_ptr.

+ Here is the call graph for this function: