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

Insert into this array, beginning at the specified `dstIndex`, the values from the specified `srcArray`&period; All values with indices at or above `dstIndex` in this array are shifted up by `srcArray&period;length()` bit positions&period; The behavior is undefined unless `dstIndex &lt;&equals; length()`&period;

== Synopsis

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

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


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