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:
N
elements have been extracted and stored.0
nor 1
, in which case the input element is not extracted.If the function stores no characters in str
, it calls is.
setstate
(ios_base::failbit)
. In any case, it returns is
.