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

◆ clear()

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

Definition at line 508 of file vector.h.

508 {
509 for (size_t i = 0; i < mSize; ++i) {
510 mAlloc.destroy(&mArray[i]);
511 }
512 mSize = 0;
513 }

Referenced by fl::HeapVector< DrawItem >::~HeapVector(), fl::HeapVector< DrawItem >::assign(), and fl::HeapVector< DrawItem >::assign().

+ Here is the caller graph for this function: