template<typename type_t , typename allocator_t = xtd::collections::generic::helpers::allocator<typename std::conditional<std::is_same<bool, type_t>::value, char, type_t>::type>>
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.
- Parameters
-
new_cap | The new capacity of the vector, in number of elements. |