← Back to context

Comment by glandium

5 years ago

I actually did misunderstand. I thought it allowed callers to give an allocator and the callees didn't have to know for it to be used.

I mean, I'd say you were mostly right, in the sense that the callee doesn't know the implementation details of the passed allocator; it's only aware of the interface (i.e. the struct of function pointers that defines that interface).