[#BloombergLP-bdlc-BitArray-insert-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::insert
:relfileprefix: ../../../
:mrdocs:

`insert` overloads

== Synopses

Declared in `&lt;bdlc&lowbar;bitarray&period;h&gt;`

Insert a single bit value at `dstIndex` in this array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/BitArray/insert-063.adoc[insert](
    std::size&lowbar;t dstIndex,
    bool value);
----

[.small]#xref:BloombergLP/bdlc/BitArray/insert-063.adoc[_» more&period;&period;&period;_]#

Insert all bits from `srcArray` at `dstIndex` in this array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/BitArray/insert-06e.adoc[insert](
    std::size&lowbar;t dstIndex,
    xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& srcArray);
----

[.small]#xref:BloombergLP/bdlc/BitArray/insert-06e.adoc[_» more&period;&period;&period;_]#

Insert repeated bit values at `dstIndex` in this array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/BitArray/insert-05.adoc[insert](
    std::size&lowbar;t dstIndex,
    bool value,
    std::size&lowbar;t numBits);
----

[.small]#xref:BloombergLP/bdlc/BitArray/insert-05.adoc[_» more&period;&period;&period;_]#

Insert a bit range from `srcArray` at `dstIndex` in this array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/BitArray/insert-0a.adoc[insert](
    std::size&lowbar;t dstIndex,
    xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& srcArray,
    std::size&lowbar;t srcIndex,
    std::size&lowbar;t numBits);
----

[.small]#xref:BloombergLP/bdlc/BitArray/insert-0a.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dstIndex*
| index at which to insert
| *value*
| bit value to insert
| *srcArray*
| array whose bits are inserted
| *numBits*
| number of bits to insert
| *srcIndex*
| starting index in `srcArray`
|===


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