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

◆ ~scoped_array2()

template<typename T, typename Alloc = fl::allocator<T>>
fl::scoped_array2< T, Alloc >::~scoped_array2 ( )
inline

Definition at line 190 of file scoped_ptr.h.

190 {
191 if (arr_) {
192 // Call destructor on each element
193 for (size_t i = 0; i < size_; ++i) {
194 mAlloc.destroy(&arr_[i]);
195 }
196 mAlloc.deallocate(arr_, size_);
197 }
198 }

References arr_, mAlloc, and size_.