C++ Language/Std/Stl/CollectionClasses/SequenceCollections/Vector/InsertingItems

An inserted item does not need to have the exact same item-type as the vector, as long as it can be coerced into the vector's item-type. If there will be coercion, then insertion by  will be faster than   because   directly uses a single-parameter-cast-constructor instead of copy-constructing from a compiler-temporary that holds the coerced-value.

To insert as the vector's last item, use  or.

Additional information about inserting items into a vector (includes interactive examples)