FastLED
3.9.15
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
860
of file
allocator.h
.
860
{
861
if
(
this
!= &
other
) {
862
clear
();
863
864
// Copy inlined data
865
mInlinedUsed
=
other
.
mInlinedUsed
;
866
for
(
fl::size
i
= 0;
i
<
mInlinedUsed
; ++
i
) {
867
new
(&
get_inlined_ptr
()[
i
])
T
(
other
.
get_inlined_ptr
()[
i
]);
868
}
869
870
// Copy free bits
871
mFreeBits
=
other
.
mFreeBits
;
872
873
// Note: Heap allocations are not copied, only inlined data
874
875
// Copy active allocations count
876
mActiveAllocations
=
other
.
mActiveAllocations
;
877
}
878
return
*
this
;
879
}
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::clear
void clear() FL_NOEXCEPT
Definition
allocator.h:972
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