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
noexcept
Definition at line
559
of file
allocator.h
.
559
{
560
// Copy inlined data
561
m_inlined_used
=
other
.
m_inlined_used
;
562
for
(
fl::size
i
= 0;
i
<
m_inlined_used
; ++
i
) {
563
new
(&
get_inlined_ptr
()[
i
])
T
(
other
.
get_inlined_ptr
()[
i
]);
564
}
565
566
// Copy free bits
567
m_free_bits
=
other
.
m_free_bits
;
568
569
// Note: Heap allocations are not copied, only inlined data
570
571
// Copy active allocations count
572
m_active_allocations
=
other
.
m_active_allocations
;
573
}
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