FastLED
3.10.6
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
857
of file
allocator.h
.
857
{
858
// Copy inlined data
859
mInlinedUsed
=
other
.
mInlinedUsed
;
860
for
(
fl::size
i
= 0;
i
<
mInlinedUsed
; ++
i
) {
861
new
(&
get_inlined_ptr
()[
i
])
T
(
other
.
get_inlined_ptr
()[
i
]);
862
}
863
864
// Copy free bits
865
mFreeBits
=
other
.
mFreeBits
;
866
867
// Note: Heap allocations are not copied, only inlined data
868
869
// Copy active allocations count
870
mActiveAllocations
=
other
.
mActiveAllocations
;
871
}
fl::allocator_inlined::mActiveAllocations
fl::size mActiveAllocations
Definition
allocator.h:835
fl::allocator_inlined::get_inlined_ptr
T * get_inlined_ptr() FL_NO_EXCEPT
Definition
allocator.h:1015
fl::allocator_inlined::mInlinedUsed
fl::size mInlinedUsed
Definition
allocator.h:833
fl::allocator_inlined::mFreeBits
fl::bitset_fixed< N > mFreeBits
Definition
allocator.h:834
fl::allocator_inlined
Definition
allocator.h:819
fl
allocator_inlined
Generated on Sun Oct 4 2026 23:09:08 for FastLED by
1.13.2