FastLED 3.9.15
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 743 of file allocator.h.

743 {
744 constexpr fl::size block_size = sizeof(T) > sizeof(void*) ? sizeof(T) : sizeof(void*);
746 if (ptr) {
747 return *static_cast<SlabAllocator<T, SLAB_SIZE>*>(ptr);
748 }
749 // First time for this (block_size, slab_size) pair - create and register
752 return allocator;
753 }
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_NOEXCEPT, 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: