FastLED 3.9.15
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 274 of file shared_ptr.h.

274 {
275 if (static_cast<void*>(this) != static_cast<void*>(&other)) {
276 reset();
277 mPtr = static_cast<T*>(other.mPtr);
279 other.mPtr = nullptr;
280 other.mControlBlock = nullptr;
281 }
282 return *this;
283 }
detail::ControlBlockBase * mControlBlock
Definition shared_ptr.h:158
void reset() FL_NOEXCEPT
Definition shared_ptr.h:286