The parameterized version, flips only the bit at position pos.
The unary operator~ performs the same operation as flip().
Parameters
- pos
- Order position of the bit whose value is flipped.
Order positions are counted from the rightmost bit, which is order position 0.
size_t is an unsigned integral type.
Return value
*thisIf pos is not a valid bit position, out_of_range is thrown.
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
See also
| bitset::set | Set bits (public member function) |
| bitset::reset | Reset bits (public member function) |
