boost::dynamic_bitset::set

set overloads

Synopses

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

Sets all the bits in this bitset.

Sets the bit at position pos in this bitset to val.

dynamic_bitset&
set(
    size_type pos,
    bool val = true);

Sets the bits in the range [pos, pos + len) to val.

dynamic_bitset&
set(
    size_type pos,
    size_type len,
    bool val);

Return Value

*this.

Parameters

Name Description

pos

The position of the bit to set or clear.

val

The value to set the bit to.

len

The number of bits to set.

Preconditions

  • pos < this‐>size().

  • pos + len <= this‐>size().

Created with MrDocs