FastLED
3.9.15
Loading...
Searching...
No Matches
◆
allocator_inlined()
[2/3]
template<typename T, fl::size N, typename BaseAllocator = fl::allocator<T>>
fl::allocator_inlined
< T, N, BaseAllocator >::allocator_inlined
(
const
allocator_inlined
< T, N, BaseAllocator > &
other
)
inline
Definition at line
843
of file
allocator.h
.
843
{
844
// Copy inlined data
845
mInlinedUsed
=
other
.
mInlinedUsed
;
846
for
(
fl::size
i
= 0;
i
<
mInlinedUsed
; ++
i
) {
847
new
(&
get_inlined_ptr
()[
i
])
T
(
other
.
get_inlined_ptr
()[
i
]);
848
}
849
850
// Copy free bits
851
mFreeBits
=
other
.
mFreeBits
;
852
853
// Note: Heap allocations are not copied, only inlined data
854
855
// Copy active allocations count
856
mActiveAllocations
=
other
.
mActiveAllocations
;
857
}
fl::allocator_inlined::mActiveAllocations
fl::size mActiveAllocations
Definition
allocator.h:821
fl::allocator_inlined::mInlinedUsed
fl::size mInlinedUsed
Definition
allocator.h:819
fl::allocator_inlined::get_inlined_ptr
T * get_inlined_ptr() FL_NOEXCEPT
Definition
allocator.h:1001
fl::allocator_inlined::mFreeBits
fl::bitset_fixed< N > mFreeBits
Definition
allocator.h:820
fl::allocator_inlined
Definition
allocator.h:805
fl
allocator_inlined
Generated on Tue Jun 16 2026 00:07:04 for FastLED by
1.13.2