FastLED 3.10.6
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 986 of file allocator.h.

986 {
987 // Destroy inlined objects
988 for (fl::size i = 0; i < mInlinedUsed; ++i) {
989 get_inlined_ptr()[i].~T();
990 }
991 mInlinedUsed = 0;
992 mFreeBits.reset();
994
995 // Clean up the base allocator (for SlabAllocator, this clears slabs and free lists)
997 }
fl::size mActiveAllocations
Definition allocator.h:835
void cleanup_base_allocator() FL_NO_EXCEPT
Definition allocator.h:1033
T * get_inlined_ptr() FL_NO_EXCEPT
Definition allocator.h:1015
fl::bitset_fixed< N > mFreeBits
Definition allocator.h:834

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: