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

◆ InlinedVector() [5/5]

template<typename T, fl::size INLINED_SIZE>
fl::InlinedVector< T, INLINED_SIZE >::InlinedVector ( fl::initializer_list< T > init)
inline

Definition at line 919 of file vector.h.

919 : mUsingHeap(false) {
920 if (init.size() > INLINED_SIZE) {
921 mHeap.reserve(init.size());
922 for (const auto& value : init) {
923 mHeap.push_back(value);
924 }
925 mUsingHeap = true;
926 } else {
927 for (const auto& value : init) {
928 mFixed.push_back(value);
929 }
930 }
931 }
fl::size size() const
Definition vector.h:1008
HeapVector< T > mHeap
Definition vector.h:1211
FixedVector< T, INLINED_SIZE > mFixed
Definition vector.h:1210

References mUsingHeap.