FastLED
3.10.6
Loading...
Searching...
No Matches
◆
operator=()
template<typename T, fl::size N, typename BaseAllocator = fl::allocator<T>>
allocator_inlined
&
fl::allocator_inlined
< T, N, BaseAllocator >::operator=
(
const
allocator_inlined
< T, N, BaseAllocator > &
other
)
inline
Definition at line
874
of file
allocator.h
.
874
{
875
if
(
this
!= &
other
) {
876
clear
();
877
878
// Copy inlined data
879
mInlinedUsed
=
other
.
mInlinedUsed
;
880
for
(
fl::size
i
= 0;
i
<
mInlinedUsed
; ++
i
) {
881
new
(&
get_inlined_ptr
()[
i
])
T
(
other
.
get_inlined_ptr
()[
i
]);
882
}
883
884
// Copy free bits
885
mFreeBits
=
other
.
mFreeBits
;
886
887
// Note: Heap allocations are not copied, only inlined data
888
889
// Copy active allocations count
890
mActiveAllocations
=
other
.
mActiveAllocations
;
891
}
892
return
*
this
;
893
}
fl::allocator_inlined::mActiveAllocations
fl::size mActiveAllocations
Definition
allocator.h:835
fl::allocator_inlined::clear
void clear() FL_NO_EXCEPT
Definition
allocator.h:986
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