[#bsl-vector-0aa7-insert-0c]
= xref:bsl.adoc[bsl]::xref:bsl/vector-0aa7.adoc[vector&lt;long double&gt;]::insert
:relfileprefix: ../../
:mrdocs:

Insert at the specified `position` in this vector the specified `numElements` copies of the specified `value`, and return an iterator referring to the first newly inserted element&period; If an exception is thrown (other than by the copy constructor, move constructor, assignment operator, or move assignment operator of `VALUE&lowbar;TYPE`), `&ast;this` is unaffected&period; Throw `std&colon;&colon;length&lowbar;error` if `size() &plus; numElements &gt; max&lowbar;size()`&period; The behavior is undefined unless `position` is an iterator in the range `&lsqb;begin() &period;&period; end()&rsqb;` (both endpoints included)&period; This method requires that the (template parameter) type `VALUE&lowbar;TYPE` be `copy&hyphen;insertable` into this vector (see &lcub;Requirements on `VALUE&lowbar;TYPE`&rcub;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vector-0aa7/iterator.adoc[iterator]
insert(
    xref:bsl/vector-0aa7/const_iterator.adoc[const&lowbar;iterator] position,
    xref:bsl/vector-0aa7/size_type.adoc[size&lowbar;type] numElements,
    long double const& value);
----


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