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