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

◆ operator=() [4/4]

template<typename T>
template<typename Y, typename = typename fl::enable_if<fl::is_base_of<T, Y>::value>::type>
shared_ptr & fl::shared_ptr< T >::operator= ( shared_ptr< Y > && other)
inline

Definition at line 282 of file shared_ptr.h.

282 {
283 if (static_cast<void*>(this) != static_cast<void*>(&other)) {
284 reset();
285 mPtr = static_cast<T*>(other.mPtr);
287 other.mPtr = nullptr;
288 other.mControlBlock = nullptr;
289 }
290 return *this;
291 }
detail::ControlBlockBase * mControlBlock
Definition shared_ptr.h:166
void reset() FL_NO_EXCEPT
Definition shared_ptr.h:294