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

◆ allocate()

template<typename T, fl::size SLAB_SIZE = FASTLED_DEFAULT_SLAB_SIZE>
T * fl::allocator_slab< T, SLAB_SIZE >::allocate ( fl::size n)
inline

Definition at line 771 of file allocator.h.

771 {
772 // Use a static allocator instance per type/size combination
774 return allocator.allocate(n);
775 }
static SlabAllocator< T, SLAB_SIZE > & get_allocator() FL_NO_EXCEPT
Definition allocator.h:757
T * allocate(fl::size n) FL_NO_EXCEPT
Definition allocator.h:771

References fl::allocator< T >::allocate(), fl::FL_NO_EXCEPT, and get_allocator().

+ Here is the call graph for this function: