[#BloombergLP-bdlc-BitArray-andEqual-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::andEqual
:relfileprefix: ../../../
:mrdocs:

`andEqual` overloads

== Synopses

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

AND the bit at the specified `index` in this array with the specified `value` (retaining the result)&period; The behavior is undefined unless `index &lt; length()`&period;


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

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

Bitwise AND a bit range from `srcArray` into this array&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/BitArray/andEqual-02.adoc[andEqual](
    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/andEqual-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| bit position to modify
| *value*
| bit value to AND at `index`
| *dstIndex*
| starting index in this array
| *srcArray*
| array providing the source bits
| *srcIndex*
| starting index in `srcArray`
| *numBits*
| number of bits to AND
|===


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