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

◆ erase() [2/2]

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

Definition at line 512 of file vector.h.

512 {
513 if (pos == end() || empty()) {
514 return false;
515 }
516 if (out_value) {
517 *out_value = *pos;
518 }
519 while (pos != end() - 1) {
520 *pos = *(pos + 1);
521 ++pos;
522 }
523 back() = T();
524 --mSize;
525 return true;
526 }
bool empty() const
Definition vector.h:437
iterator end()
Definition vector.h:466
size_t mSize
Definition vector.h:310

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

+ Here is the caller graph for this function: