bitset::operator~

bitset<N> operator~();

The member operator function returns bitset(*this).flip().