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 111 of file scoped_array.h.

111 {
112 if (arr_) {
113 // Call destructor on each element
114 for (fl::size_t i = 0; i < size_; ++i) {
115 mAlloc.destroy(&arr_[i]);
116 }
117 mAlloc.deallocate(arr_, size_);
118 }
119 }

References arr_, mAlloc, and size_.