posted 24 years ago
Ans: The vector grows in size to a capacity of 15 elements.
For Vector, the c'tor you're invoking is:
Initial capacity = 5
capacityIncrement = 10
When you added the 6th element, the Vector had to resize. It will add 10 to the current size (5) which gives 15.
-Peter
[This message has been edited by Peter Tran (edited January 26, 2001).]