Skip to content

Using user-provided memory area as a memory pool with deallocation support? #163

Answered by foonathan
v1993 asked this question in Q&A
Discussion options

You must be logged in to vote

It sounds like you want memory_pool with a custom BlockOrRawAllocator. The easiest way is to use a very simple BlockAllocator like the one given in that example: https://memory.foonathan.net/md_doc_concepts.html#concept_blockallocator.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@foonathan
Comment options

@v1993
Comment options

@foonathan
Comment options

@v1993
Comment options

@foonathan
Comment options

Answer selected by v1993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants