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 420 of file vector.h.

420 {
421 clear();
422 if (mArray) {
423 for (fl::size i = 0; i < mSize; ++i) {
424 mAlloc.destroy(&mArray[i]);
425 }
426 mAlloc.deallocate(mArray, mCapacity);
427 mArray = nullptr;
428 }
429 }