Dynamic Array reserve

Vino vino.bheeman at hotmail.com
Sat Dec 16 14:11:59 UTC 2017


Hi All,

  Request your help on reserve an dynamic array when the capacity 
is reached to a point(eg: 80%) so the array to extend the reserve 
by next 20%

Example:
Array!string Test;
Test. reserve(100) - Initall
Test =(.........) - The number of entries are dynamic
if (array.capacity > 80%) { array.reserve(100+20%)


From,
Vino.B




More information about the Digitalmars-d-learn mailing list