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

◆ insert() [1/2]

template<typename T, typename Allocator = fl::allocator<T>>
bool fl::HeapVector< T, Allocator >::insert ( iterator pos,
const T & value )
inline

Definition at line 683 of file vector.h.

683 {
684 // TODO: Introduce mMaxSize (and move it from SortedVector to here)
685 // push back and swap into place.
688 auto last = end() - 1;
690 --curr_idx) {
691 auto first = begin() + curr_idx - 1;
692 auto second = begin() + curr_idx;
693 swap(first, second);
694 }
695 return true;
696 }
void swap(HeapVector< T > &other)
Definition vector.h:663
void push_back(const T &value)
Definition vector.h:552