Return array right‐shifted by numBits, filling high bits with zeros.
Synopsis
Declared in <bdlc_bitarray.h>
bdlc::BitArray
operator>>(
BitArray const& array,
std::size_t numBits);
Description
Return the value of the specified array right‐shifted by the specified numBits positions, having filled the higher‐index positions with zeros. The behavior is undefined unless numBits <= array.length(). Note that the length of the result equals the length of the original array, and that the lowest‐order numBits are discarded in the result.
Return Value
array right‐shifted by numBits
Parameters
Name |
Description |
array |
bit array to shift |
numBits |
number of positions to shift right |
Created with MrDocs