void reserve | ( | std::size_t | new_cap | ) |
Reserves space to store at least a given number of elements without reallocations.
new_cap | A desired capacity of the vector. The function does nothing, if the value of new_cap is less or equal to the current capacity with the minimal possible value of the latter being sbo_threshold elements. To reduce the capacity of the vector, use the shrink_to_fit method. |