[#BloombergLP-bdlc-BitArray-operator_and_eq] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::operator&= :relfileprefix: ../../../ :mrdocs: Bitwise AND `rhs` into this array and return a reference to this object. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlc/BitArray.adoc[BitArray]& operator&=(xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& rhs); ---- == Description Bitwise AND the value of the specified `rhs` array with the value of this array (retaining the results), and return a non‐`const` reference to this object. The length of the result will be the maximum of the lengths of this object and `rhs`, where any most‐significant bits that are represented in one of the two but not the other will be set to 0. Note that `a &= b;` will result in the same value of `a` as `a = a & b;`. == Return Value non‐`const` reference to this object == Parameters [cols="1,4"] |=== | Name| Description | *rhs* | array providing the bits to AND with this array |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#