[#bitdeque-insert-08]
= xref:bitdeque.adoc[bitdeque]::insert
:relfileprefix: ../
:mrdocs:

`insert` overloads

== Synopses

Declared in `&lt;util&sol;bitdeque&period;h&gt;`

Insert a single bit before the given position&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bitdeque/iterator-05.adoc[iterator]
xref:bitdeque/insert-0d.adoc[insert](
    xref:bitdeque/const_iterator.adoc[const&lowbar;iterator] pos,
    bool val);
----

[.small]#xref:bitdeque/insert-0d.adoc[_» more&period;&period;&period;_]#

Insert count copies of a bit before the given position&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bitdeque/iterator-05.adoc[iterator]
xref:bitdeque/insert-09.adoc[insert](
    xref:bitdeque/const_iterator.adoc[const&lowbar;iterator] pos,
    xref:bitdeque/size_type.adoc[size&lowbar;type] count,
    bool val);
----

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

Insert the bits in &lsqb;first,last) before the given position&period;&rsqb;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename It&gt;
xref:bitdeque/iterator-05.adoc[iterator]
xref:bitdeque/insert-06.adoc[insert](
    xref:bitdeque/const_iterator.adoc[const&lowbar;iterator] pos,
    It first,
    It last);
----

[.small]#xref:bitdeque/insert-06.adoc[_» more&period;&period;&period;_]#

== Return Value

* Iterator to the inserted bit&period;
* Iterator to the first inserted bit&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| Iterator before which the bit is inserted&period;
| *val*
| Value of the inserted bit&period;
| *count*
| Number of bits to insert&period;
| *first*
| Iterator to the first bit to insert&period;
| *last*
| Iterator past the last bit to insert&period;
|===


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