=====flip===== Syntax: #include bitset& flip(); bitset& 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.