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

◆ push_back()

template<typename T, size_t INLINED_SIZE>
void fl::InlinedVector< T, INLINED_SIZE >::push_back ( const T & value)
inline

Definition at line 965 of file vector.h.

965 {
966 if (!mUsingHeap) {
967 if (mFixed.size() < INLINED_SIZE) {
968 mFixed.push_back(value);
969 return;
970 }
971 // overflow: move inline data into heap
972 mHeap.reserve(INLINED_SIZE * 2);
973 for (auto &v : mFixed) {
974 mHeap.push_back(v);
975 }
976 mFixed.clear();
977 mUsingHeap = true;
978 }
979 mHeap.push_back(value);
980 }
HeapVector< T > mHeap
Definition vector.h:1071
FixedVector< T, INLINED_SIZE > mFixed
Definition vector.h:1070

References mFixed, mHeap, and mUsingHeap.

Referenced by loop(), and anonymous_namespace{xypaths.cpp}::make_path().

+ Here is the caller graph for this function: