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 690 of file allocator.h.

690 {
691 // Destroy inlined objects
692 for (fl::size i = 0; i < m_inlined_used; ++i) {
693 get_inlined_ptr()[i].~T();
694 }
695 m_inlined_used = 0;
696 m_free_bits.reset();
698
699 // Clean up the base allocator (for SlabAllocator, this clears slabs and free lists)
701 }
void cleanup_base_allocator()
Definition allocator.h:737
fl::bitset_fixed< N > m_free_bits
Definition allocator.h:536
fl::size m_active_allocations
Definition allocator.h:537

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: