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

◆ erase() [2/2]

template<typename T, typename Allocator = fl::allocator<T>>
bool fl::HeapVector< T, Allocator >::erase ( iterator pos,
T * out_value = nullptr )
inline

Definition at line 564 of file vector.h.

564 {
565 if (pos == end() || empty()) {
566 return false;
567 }
568 if (out_value) {
569 *out_value = *pos;
570 }
571 while (pos != end() - 1) {
572 *pos = *(pos + 1);
573 ++pos;
574 }
575 back() = T();
576 --mSize;
577 return true;
578 }

Referenced by fl::HeapVector< DrawItem >::erase().

+ Here is the caller graph for this function: