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

◆ destroy_object()

template<typename T, typename Deleter = default_delete<T>>
void fl::detail::ControlBlock< T, Deleter >::destroy_object ( )
inlineoverridevirtual

Implements fl::detail::ControlBlockBase.

Definition at line 87 of file shared_ptr.h.

87 {
88 if (ptr && !is_no_tracking()) { // Only delete if tracking
89 deleter(ptr);
90 ptr = nullptr;
91 }
92 }
bool is_no_tracking() const FL_NOEXCEPT

References deleter, FL_NOEXCEPT, fl::detail::ControlBlockBase::is_no_tracking(), and ptr.

+ Here is the call graph for this function: