On Wednesday, 8 June 2016 at 12:38:25 UTC, Andrei Alexandrescu wrote:
On 6/8/16 1:59 PM, Nick Treleaven wrote:
I wonder if Andrei's allocator API supports freeing with a size argument.

Size is required with all deallocations. -- Andrei

Thanks. So I suppose it's up to each allocator whether this will work or not:

alloc.makeArray!T(5).ptr.Alias!(p => alloc.dispose(p));

I guess it would work for Mallocator.

Reply via email to