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

# boost::dynamic_bitset::set

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

## Synopsis

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

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

## Return Value

`*this`.

## Parameters

Name | Description
--- | ---
pos | The position of the bit to set or clear.
val | The value to set the bit to.

## Preconditions

- `pos < this‐>size()`.

Created with MrDocs