[#bsl-deque-0c-insert_range]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::insert&lowbar;range
:relfileprefix: ../../
:mrdocs:

Insert the elements of `range` before `position`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;deque&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;RANGE&gt;
xref:bsl/deque-0c/iterator-02.adoc[deque&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;::iterator]
insert&lowbar;range(
    xref:bsl/deque-0c/const_iterator.adoc[const&lowbar;iterator] position,
    t&lowbar;RANGE&& range);
----

== Description

Insert at the specified `position` in this object the elements of the specified `range`&period; Note that `range` must meet the requirements of an input range and the values from `range` must have a type matching or convertible to (template parameter) `VALUE&lowbar;TYPE`&period;

== Return Value

iterator to the first inserted element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| iterator before which to insert
| *range*
| input range of elements to insert
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
