FastLED
3.9.15
Loading...
Searching...
No Matches
◆
~scoped_array2()
template<typename T, typename Alloc = fl::allocator<T>>
fl::scoped_array2
< T, Alloc >::~
scoped_array2
(
)
inline
Definition at line
190
of file
scoped_ptr.h
.
190
{
191
if
(
arr_
) {
192
// Call destructor on each element
193
for
(
size_t
i
= 0;
i
<
size_
; ++
i
) {
194
mAlloc
.destroy(&
arr_
[
i
]);
195
}
196
mAlloc
.deallocate(
arr_
,
size_
);
197
}
198
}
fl::scoped_array2::mAlloc
Alloc mAlloc
Definition
scoped_ptr.h:176
fl::scoped_array2::size_
size_t size_
Definition
scoped_ptr.h:284
fl::scoped_array2::arr_
T * arr_
Definition
scoped_ptr.h:283
fl::scoped_array2
Definition
scoped_ptr.h:173
References
arr_
,
mAlloc
, and
size_
.
fl
scoped_array2
Generated on Thu Jun 5 2025 04:29:40 for FastLED by
1.13.2