std.expreimantal.allocator deallocate

Paul Backus snarwin at gmail.com
Sun Jan 24 14:56:25 UTC 2021


On Sunday, 24 January 2021 at 11:00:17 UTC, vitamin wrote:
> It is Ok when I call deallocate with smaller slice or I need 
> track exact lengtht?

It depends on the specific allocator, but in general, it is only 
guaranteed to work correctly if the slice you pass to deallocate 
is exactly the same as the one you got from allocate.


More information about the Digitalmars-d-learn mailing list