FastLED 3.10.6
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 164 of file allocator.h.

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