BloombergLP::bdlc::operator<<

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.

Synopsis

Declared in <bdlc_bitarray.h>

bdlc::BitArray
operator<<(
    BitArray const& array,
    std::size_t numBits);