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

◆ ~HeapVector()

template<typename T, typename Allocator = fl::allocator<T>>
fl::HeapVector< T, Allocator >::~HeapVector ( )
inline

Definition at line 362 of file vector.h.

362 {
363 clear();
364 if (mArray) {
365 for (size_t i = 0; i < mSize; ++i) {
366 mAlloc.destroy(&mArray[i]);
367 }
368 mAlloc.deallocate(mArray, mCapacity);
369 mArray = nullptr;
370 }
371 }