News for hackers. Stuff that matters.
Re:Show HN: C library of generic, reference-counted data str... by enqk on Saturday June 15, 2013 @02:49AM (#5884347)
I would suggest offering the ability to plug custom allocators.
Re:Show HN: C library of generic, reference-counted data str... by ambrop7 on Saturday June 15, 2013 @09:18AM (#5884933)
If you feel a need to do that, check cmccabe's comment on the top about intrusive data structures. These let you do your own memory management, in a way that the data structure implementation doesn't need to know about.