2 ms·
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.
by glandium 6y 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.
- yellowapple 6y agoI 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).