|
inlinevirtual |
Increase the capacity of the vector (the total number of elements that the vector can hold without requiring reallocation) to a value that's greater or equal to new_cap
. If new_cap is greater than the current capacity(), new storage is allocated, otherwise the function does nothing.
new_cap | The new capacity of the vector, in number of elements. |
new_cap
is greater than xtd::collections::generic::list::capacity property, all iterators, including the xtd::collections::generic::list::end iterator, and all references to the elements are invalidated; otherwise, no iterators or references are invalidated.