Return array left‐shifted by numBits, filling low 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 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.
Return Value
array left‐shifted by numBits
Parameters
Name |
Description |
array |
bit array to shift |
numBits |
number of positions to shift left |
Created with MrDocs