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

◆ erase() [2/2]

template<typename T, size_t N>
iterator fl::FixedVector< T, N >::erase ( iterator pos)
inline

Definition at line 115 of file vector.h.

115 {
116 if (pos != end()) {
117 pos->~T();
118 // shift all elements to the left
119 for (iterator p = pos; p != end() - 1; ++p) {
120 new (p) T(*(p + 1)); // Use copy constructor instead of std::move
121 (p + 1)->~T();
122 }
123 --current_size;
124 }
125 return pos;
126 }
size_t current_size
Definition vector.h:25
iterator end()
Definition vector.h:210

Referenced by fl::FixedVector< PairKV, N >::erase().

+ Here is the caller graph for this function: