List.reserve

Asks the implementation of the list to increase the capacity of the list than specified, the implementation MAY increase the allocated memory but it is NOT REQUIRED to do so. It is possible that in some implementations this method is simply ignored.

This function could cause a memory reallocation.

interface List(T)
void
reserve
(
size_t numReserve
)

Parameters

numReserve
Type: size_t

the amount of capacity to be increased

Meta