34
Inserting Multiple Elements
•All insertion and deletion operations have a count parameter (that defaults to 1) to control how many elements are inserted or deleted. There are additional overloadings of insertion operations, that accept a vector as the New_Item parameter.
•In general, when you insert multiple elements into a vector, you should try to do it in a way that avoids repeated expansion of the internal array. If you know how many elements you intend to insert, then either Reserve_Capacity first, or Insert_Space, or Set_Length, or specify the Count parameter of Insert.