Template:cpp/container/insert

Inserts elements at the specified location in the container.

@1-2@ inserts before.

@3@ inserts copies of the  before.

@4@ inserts elements from range before.

The behavior is undefined if and  are iterators into.

@5@ inserts elements from initializer list before.

Return value
@1-2@ Iterator pointing to the inserted.

@3@ Iterator pointing to the first element inserted, or if.

@4@ Iterator pointing to the first element inserted, or if.

@5@ Iterator pointing to the first element inserted, or if  is empty.

Exceptions
{{#switch:{{{1|list}}}
 * vector|list|deque=

Example
}}