FastLED 3.9.15
Loading...
Searching...
No Matches

◆ clear()

template<typename T, fl::size N, typename BaseAllocator = fl::allocator<T>>
void fl::allocator_inlined< T, N, BaseAllocator >::clear ( )
inline

Definition at line 972 of file allocator.h.

972 {
973 // Destroy inlined objects
974 for (fl::size i = 0; i < mInlinedUsed; ++i) {
975 get_inlined_ptr()[i].~T();
976 }
977 mInlinedUsed = 0;
978 mFreeBits.reset();
980
981 // Clean up the base allocator (for SlabAllocator, this clears slabs and free lists)
983 }
fl::size mActiveAllocations
Definition allocator.h:821
void cleanup_base_allocator() FL_NOEXCEPT
Definition allocator.h:1019
T * get_inlined_ptr() FL_NOEXCEPT
Definition allocator.h:1001
fl::bitset_fixed< N > mFreeBits
Definition allocator.h:820

Referenced by fl::allocator_inlined< U, N, typename BaseAllocator::template rebind< U >::other >::~allocator_inlined(), and fl::allocator_inlined< U, N, typename BaseAllocator::template rebind< U >::other >::operator=().

+ Here is the caller graph for this function: