boost::dynamic_bitset::set :: Boost.DynamicBitset

# boost::dynamic_bitset::set

`set` overloads

## Synopses

Declared in `<boost/dynamic_bitset/dynamic_bitset.hpp>`

Sets all the bits in this bitset.

    dynamic_bitset&
    set();

» more...

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

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

» more...

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

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

» more...

## 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