Does reserve() preallocate for futher appends too?

Jack jckj33 at gmail.com
Mon Mar 1 03:07:19 UTC 2021


isn't clear for me if reserve() does preallocate memory so that 
that operator like arr ~= x can use previously allocate memory by 
reserve() or it's just used in slices like b = arr[x .. y]?


More information about the Digitalmars-d-learn mailing list