Return array left-shifted by numBits, filling low bits with zeros.
Declared in <bdlc_bitarray.h>
bdlc::BitArray
operator<<(
BitArray const& array,
std::size_t numBits);
Return the value of the specified array left-shifted by the specified numBits positions, having filled the lower-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 highest-order numBits are discarded in the result.
array left-shifted by numBits
| Name | Description |
|---|---|
| array | bit array to shift |
| numBits | number of positions to shift left |