How can I clean array and prevent further reallocation if there's enough space already?

Adam D. Ruppe destructionator at gmail.com
Sun Feb 7 21:34:22 UTC 2021


On Sunday, 7 February 2021 at 21:31:11 UTC, Jack wrote:
> assumeSafeAppend() wouldn't work in this case because I don't 
> know the number of items that is going to be added to the array.

I don't think that matters. assumeSafeAppend seems appropriate 
for your need.


More information about the Digitalmars-d-learn mailing list