I am a bit confused about this both of these look same to me. Although it may happen that capacity and size may differ on different compilers. how it may differ. Its also sa
The size is the number of elements in the vector. The capacity is the maximum number of elements the vector can currently hold.