_d_arrayshrinkfit
fn
void _d_arrayshrinkfit(Tarr: T[], T)(Tarr arr, bool isshared) @trustedShrink the "allocated" length of an array to be the exact size of the array.
It doesn't matter what the current allocated length of the array is, the user is telling the runtime that he knows what he is doing.
Parameters
T | the type of the elements in the array (this should be unqualified) |
arr | array to shrink. Its .length is element length, not byte length, despite void type |
isshared | true if the underlying data is shared |