Manually reserves memory internally to store an array that will eventually grow to the specified size. Reserve does not resize the array.
The main reason for using Reserve is efficiency. If you know the size the array will eventually grow to in advance, reserving the space in memory ahead can help improve performance when increasing the array size frequently.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License