operator>>

template<class E, class T, size_t N>
    basic_istream<E, T>& operator>>(basic_istream<E, T>&
        is, bitset<N>& x);

The template function overloads operator>> to store in x the value bitset(str), where str is an object of type basic_string<E, T, allocator<E> >& extracted from is. The function extracts elements and appends them to str until:

If the function stores no characters in str, it calls is.setstate(ios_base::failbit). In any case, it returns is.