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

◆ HeapVector() [2/6]

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

Definition at line 373 of file vector.h.

373 : mCapacity(size), mSize(size) {
374 if (size > 0) {
375 // mArray.reset(size);
376 mArray = mAlloc.allocate(size);
377 for (fl::size i = 0; i < size; ++i) {
378 mAlloc.construct(&mArray[i], value);
379 }
380 }
381 }