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

410 {
411 if (pos == end() || empty()) {
412 return false;
413 }
414 if (out_value) {
415 *out_value = *pos;
416 }
417 while (pos != end() - 1) {
418 *pos = *(pos + 1);
419 ++pos;
420 }
421 back() = T();
422 --mSize;
423 return true;
424 }
bool empty() const
Definition vector.h:315
iterator end()
Definition vector.h:348
size_t mSize
Definition vector.h:221

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

+ Here is the caller graph for this function: