cpp/utility/bitset/flip

Flips bits, i.e. changes values to  and  values to. Equivalent to a logical NOT operation on part or all of the bitset.

@1@ Flips all bits (like operator~, but in-place).

@2@ Flips the bit at the position.

Exceptions
@2@ throws std if does not correspond to a valid position within the bitset.