FastLED 3.9.15
Loading...
Searching...
No Matches

◆ shared_ptr() [9/11]

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

Definition at line 208 of file weak_ptr.h.

208 : ptr_(nullptr), control_block_(nullptr) {
209 if (!weak.expired()) {
212 ptr_ = weak.ptr_;
214 }
215 }
216 if (!ptr_) {
217 // If construction failed (object was destroyed), throw bad_weak_ptr equivalent
218 // For now, just leave as default-constructed (nullptr)
219 }
220}
detail::ControlBlockBase * control_block_
Definition shared_ptr.h:109
fl::atomic_u32 shared_count
Definition shared_ptr.h:28

References control_block_, fl::weak_ptr< T >::expired(), ptr_, and weak_ptr.

+ Here is the call graph for this function: