boost::dynamic_bitset::set
Sets the bits in the range [pos, pos + len) to val.
Synopsis
Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>
dynamic_bitset&
set(
size_type pos,
size_type len,
bool val);
Description
If len is zero, does nothing. Otherwise, sets all the bits in this bitset which have a position in [pos, pos + len ‐ 1] to val.
Parameters
| Name | Description |
|---|---|
pos |
The position of the first bit to set. |
len |
The number of bits to set. |
val |
The value to set the bits to. |
Preconditions
-
pos + len <= this‐>size().
Created with MrDocs