stl:bitset:flip

C++ Reference

flip

Syntax:

    #include <bitset>
    bitset<N>& flip();
    bitset<N>& flip( size_t pos );

The flip() function inverts all of the bits in the bitset, and returns the bitset. If pos is specified, only the bit at position pos is flipped.