r/cpp • • May 03 '26

oo-alloc: i made a comprehensive learning resource for allocators in C++

hi!
i made a memory allocation library/learning resource. i wanted to learn more about them and i couldn't find one comprehensive source of knowledge, so i decided that i'll make one of my own:].
it currently has these basic allocator types: arena (linear), stack, pool, free list, free tree, tracking, buddy, slab.
i gave my best to describe everything clearly in the readme, also added svg diagrams (written in Typst, btw). i plan to implement a bucket/size-segregated free list allocator as well.
hoping anyone will find this resource useful!
https://github.com/nihiL7331/oo-alloc

28 Upvotes

3 comments sorted by

View all comments

Show parent comment

3

u/Financial_Travel_543 May 03 '26

that's a great idea! will try to incorporate that onto the readme when i'll be home:]