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

187 {
188 if (pos != end()) {
189 pos->~T();
190 // shift all elements to the left
191 for (iterator p = pos; p != end() - 1; ++p) {
192 new (p)
193 T(*(p + 1)); // Use copy constructor instead of std::move
194 (p + 1)->~T();
195 }
196 --current_size;
197 }
198 return pos;
199 }
size_t current_size
Definition vector.h:302
iterator end()
Definition vector.h:285

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

+ Here is the caller graph for this function: