Lightweight and fast free memory manager suitable for embedded applications
At first, memory pool must be declared, for example:
#include <stdint.h>
#include <heap.h>
heap::pool<4096> HeapPool; // size in bytesThe second, declare heap object with heap_guard1:
heap::manager<heap_guard> heap::Manager(HeapPool);That's all, heap functions (malloc(), free(), new , delete etc.) can be used in ordinary manner.
See wiki page for additional information.
[1] See [thread-safe guard description page for details](https://github.com/emb-lib/heap_z/wiki/thread-safe guard configuration)