[#BloombergLP-bdlc-BitArray-append-064]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::append
:relfileprefix: ../../../
:mrdocs:

Append a bit range from `srcArray` to this array&period;

== Synopsis

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

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

== Description

Append to this array the specified `numBits` from the specified `srcArray`, beginning at the specified `srcIndex`&period; The behavior is undefined unless `srcIndex &plus; numBits &lt;&equals; srcArray&period;length()`&period; Note that this method has the same behavior as&colon; &grave; insert(length(), srcArray, srcIndex, numBits)&semi; &grave;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *srcArray*
| array providing the bits to append
| *srcIndex*
| starting index in `srcArray`
| *numBits*
| number of bits to append
|===


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