[#BloombergLP-bdlc-BitArray-insert-06e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::insert :relfileprefix: ../../../ :mrdocs: Insert all bits from `srcArray` at `dstIndex` in this array. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void insert( std::size_t dstIndex, xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& srcArray); ---- == Description Insert into this array, beginning at the specified `dstIndex`, the values from the specified `srcArray`. All values with indices at or above `dstIndex` in this array are shifted up by `srcArray.length()` bit positions. The behavior is undefined unless `dstIndex <= length()`. == Parameters [cols="1,4"] |=== | Name| Description | *dstIndex* | index at which to insert | *srcArray* | array whose bits are inserted |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#