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

◆ scoped_array2() [1/3]

template<typename T, typename Alloc = fl::allocator<T>>
fl::scoped_array2< T, Alloc >::scoped_array2 ( size_t size = 0)
inlineexplicit

Definition at line 178 of file scoped_ptr.h.

179 : arr_(nullptr), size_(size) {
180 if (size > 0) {
181 arr_ = mAlloc.allocate(size);
182 // Default initialize each element
183 for (size_t i = 0; i < size; ++i) {
184 mAlloc.construct(&arr_[i]);
185 }
186 }
187 }
size_t size() const
Definition scoped_ptr.h:230

References arr_, mAlloc, size(), and size_.

Referenced by scoped_array2(), scoped_array2(), operator=(), operator=(), and swap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: