18#include "pw_allocator/allocator.h"
19#include "pw_allocator/layout.h"
20#include "pw_result/result.h"
21#include "pw_status/status.h"
23namespace pw::allocator {
39 void* DoAllocate(
Layout layout)
override;
42 void DoDeallocate(
void* ptr)
override;
45 void DoDeallocate(
void* ptr,
Layout)
override;
48 bool DoResize(
void* ptr,
size_t new_size)
override;
51 Result<Layout> DoGetInfo(InfoType info_type,
const void* ptr)
const override;
Definition: allocator.h:32
Definition: fallback_allocator.h:29
FallbackAllocator(Allocator &primary, Allocator &secondary)