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
866 for (fl::size i = 0; i < mInlinedUsed; ++i) {
868 }
869
870 // Copy free bits
872
873 // Note: Heap allocations are not copied, only inlined data
874
875 // Copy active allocations count
877 }
878 return *this;
879 }
fl::size mActiveAllocations
Definition allocator.h:821
void clear() FL_NOEXCEPT
Definition allocator.h:972
T * get_inlined_ptr() FL_NOEXCEPT
Definition allocator.h:1001
fl::bitset_fixed< N > mFreeBits
Definition allocator.h:820