FastLED 3.10.6
Loading...
Searching...
No Matches

◆ get_allocator()

template<typename T, fl::size SLAB_SIZE = FASTLED_DEFAULT_SLAB_SIZE>
static SlabAllocator< T, SLAB_SIZE > & fl::allocator_slab< T, SLAB_SIZE >::get_allocator ( )
inlinestaticprivate

Definition at line 757 of file allocator.h.

757 {
758 constexpr fl::size block_size = sizeof(T) > sizeof(void*) ? sizeof(T) : sizeof(void*);
760 if (ptr) {
761 return *static_cast<SlabAllocator<T, SLAB_SIZE>*>(ptr);
762 }
763 // First time for this (block_size, slab_size) pair - create and register
766 return allocator;
767 }
void * slab_allocator_registry_get(fl::size block_size, fl::size slab_size)
void slab_allocator_registry_set(fl::size block_size, fl::size slab_size, void *allocator)

References fl::FL_NO_EXCEPT, fl::detail::slab_allocator_registry_get(), and fl::detail::slab_allocator_registry_set().

Referenced by allocate(), and deallocate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: