[#BloombergLP-bdlc-operator_rshift]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::operator&gt;&gt;
:relfileprefix: ../../
:mrdocs:

Return `array` right&hyphen;shifted by `numBits`, filling high bits with zeros&period;

== Synopsis

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

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

== Description

Return the value of the specified `array` right&hyphen;shifted by the specified `numBits` positions, having filled the higher&hyphen;index positions with zeros&period; The behavior is undefined unless `numBits &lt;&equals; array&period;length()`&period; Note that the length of the result equals the length of the original array, and that the lowest&hyphen;order `numBits` are discarded in the result&period;

== Return Value

`array` right&hyphen;shifted by `numBits`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *array*
| bit array to shift
| *numBits*
| number of positions to shift right
|===


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