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

◆ push_back()

template<typename T, typename Allocator = fl::allocator<T>>
void fl::HeapVector< T, Allocator >::push_back ( const T & value)
inline

Definition at line 493 of file vector.h.

493 {
494 ensure_size(mSize + 1);
495 if (mSize < mCapacity) {
496 mAlloc.construct(&mArray[mSize], value);
497 ++mSize;
498 }
499 }
void ensure_size(size_t n)
Definition vector.h:373

Referenced by fl::HeapVector< DrawItem >::assign(), fl::HeapVector< DrawItem >::assign(), CreateXYPaths(), fl::HeapVector< DrawItem >::insert(), makeCorkScrew(), makeScreenMap(), and fl::HeapVector< DrawItem >::resize().

+ Here is the caller graph for this function: