FastLED 3.9.15
Loading...
Searching...
No Matches

◆ allocate_at_least()

template<typename T>
allocation_result< pointer, size_type > fl::allocator< T >::allocate_at_least ( fl::size n)
inline

Definition at line 163 of file allocator.h.

163 {
164 if (n == 0) {
165 return {nullptr, 0};
166 }
167 // Default implementation: just allocate exactly what's requested
168 // Specialized allocators may override to return more for efficiency
169 return {allocate(n), n};
170 }
T * allocate(fl::size n) FL_NOEXCEPT
Definition allocator.h:219