chsvlib
chsv helper source code

◆ reserve()

void reserve ( std::size_t  new_cap)

Reserves space to store at least a given number of elements without reallocations.

Parameters
new_capA 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.