bitset::operator==

bool operator ==(const bitset<N>& rhs) const;

The member operator function returns true only if the bit sequence stored in *this is the same as the one stored in rhs.