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
880 for (fl::size i = 0; i < mInlinedUsed; ++i) {
882 }
883
884 // Copy free bits
886
887 // Note: Heap allocations are not copied, only inlined data
888
889 // Copy active allocations count
891 }
892 return *this;
893 }
fl::size mActiveAllocations
Definition allocator.h:835
void clear() FL_NO_EXCEPT
Definition allocator.h:986
T * get_inlined_ptr() FL_NO_EXCEPT
Definition allocator.h:1015
fl::bitset_fixed< N > mFreeBits
Definition allocator.h:834