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
noexcept
Definition at line
576
of file
allocator.h
.
576
{
577
if
(
this
!= &
other
) {
578
clear
();
579
580
// Copy inlined data
581
m_inlined_used
=
other
.
m_inlined_used
;
582
for
(
fl::size
i
= 0;
i
<
m_inlined_used
; ++
i
) {
583
new
(&
get_inlined_ptr
()[
i
])
T
(
other
.
get_inlined_ptr
()[
i
]);
584
}
585
586
// Copy free bits
587
m_free_bits
=
other
.
m_free_bits
;
588
589
// Note: Heap allocations are not copied, only inlined data
590
591
// Copy active allocations count
592
m_active_allocations
=
other
.
m_active_allocations
;
593
}
594
return
*
this
;
595
}
fl::allocator_inlined::clear
void clear()
Definition
allocator.h:690
fl::allocator_inlined::get_inlined_ptr
T * get_inlined_ptr()
Definition
allocator.h:719
fl::allocator_inlined::m_free_bits
fl::bitset_fixed< N > m_free_bits
Definition
allocator.h:536
fl::allocator_inlined::m_active_allocations
fl::size m_active_allocations
Definition
allocator.h:537
fl::allocator_inlined::m_inlined_used
fl::size m_inlined_used
Definition
allocator.h:535
fl::allocator_inlined
Definition
allocator.h:521
fl
allocator_inlined
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2