Reserve() in heap insertion

Is this function used to set the min size of vector?

hello @anika203a

it is used to reserve minimum capacity.

read the example given here ->link

for better clarity

1 Like