boost::dynamic_bitset::operator<<

Returns a shifted copy of *this.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

dynamic_bitset
operator<<(size_type n) const;

Throws

An allocation error if memory is exhausted (std::bad_alloc if allocator_type is a std::allocator).

Return Value

A copy of *this shifted to the left by n positions. For each bit in the returned bitset, the bit at position pos takes on the value of the bit at position pos ‐ n of this bitset, or zero if no such bit exists.

Parameters

Name Description

n

The right operand

Created with MrDocs