[#prevector-01-insert-07]
= xref:prevector-01.adoc[prevector&lt;36, unsigned char&gt;]::insert
:relfileprefix: ../
:mrdocs:

`insert` overloads

== Synopses

Declared in `&lt;prevector&period;h&gt;`

Inserts `value` before `pos` and returns an iterator to the inserted element&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:prevector-01/iterator.adoc[iterator]
xref:prevector-01/insert-09.adoc[insert](
    xref:prevector-01/iterator.adoc[iterator] pos,
    unsigned char const& value);
----

[.small]#xref:prevector-01/insert-09.adoc[_» more&period;&period;&period;_]#

Inserts `count` copies of `value` before `pos`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:prevector-01/insert-0aa.adoc[insert](
    xref:prevector-01/iterator.adoc[iterator] pos,
    xref:prevector-01/size_type.adoc[size&lowbar;type] count,
    unsigned char const& value);
----

[.small]#xref:prevector-01/insert-0aa.adoc[_» more&period;&period;&period;_]#

Inserts the elements of the range &lsqb;first, last) before `pos`&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::input&lowbar;iterator InputIterator&gt;
void
xref:prevector-01/insert-0a7.adoc[insert](
    xref:prevector-01/iterator.adoc[iterator] pos,
    InputIterator first,
    InputIterator last);
----

[.small]#xref:prevector-01/insert-0a7.adoc[_» more&period;&period;&period;_]#

== Return Value

An iterator to the inserted element&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| Iterator to the position to insert before&period;
| *value*
| The value to insert&period;
| *count*
| The number of copies to insert&period;
| *first*
| Iterator to the first element to insert&period;
| *last*
| Iterator one past the last element to insert&period;
|===


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