Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

what is vector capacity in c++

Returns the size of the storage space currently allocated for the vector, expressed in terms of elements. This capacity is not necessarily equal to the vector size. It can be equal or greater, with the extra space allowing to accommodate for growth without the need to reallocate on each insertion.
 
PREVIOUS NEXT
Tagged: #vector #capacity
ADD COMMENT
Topic
Name
5+6 =