FastLED 3.9.15
Loading...
Searching...
No Matches
memory_resource.h File Reference

Detailed Description

PMR-style polymorphic memory resource for type-erased allocation.

Replaces template-based allocators with runtime polymorphism. Used by vector_basic to decouple allocation strategy from container type.

Definition in file memory_resource.h.

#include "fl/stl/int.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for memory_resource.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fl::memory_resource
 Polymorphic memory resource base class (PMR-style). More...
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

memory_resourcefl::default_memory_resource () FL_NOEXCEPT
 Get the default memory resource (wraps fl::Malloc / fl::Free / fl::realloc).
 
memory_resourcefl::psram_memory_resource () FL_NOEXCEPT
 Get the PSRAM memory resource (wraps PSRamAllocate / PSRamDeallocate).