void clear(iostate state = goodbit);
4 Postcondition: If rdbuf()!=0 then state == rdstate(); otherwise
rdstate()==state|ios_base::badbit.
5 Effects: If (rdstate() & exceptions()) == 0, returns. Otherwise, the function throws an
object fail of class basic_ios::failure (27.4.2.1.1), constructed with implementationdefined
argument values.
__________________
270) This suggests an infinite amount of copying, but the implementation can keep track of the maximum element of the arrays that is
nonzero.
616
© ISO/IEC ISO/IEC 14882:1998(E)
27 Input/output library 27.4.4.3 basic_ios iostate flags functions
void setstate(iostate state);
6 Effects: Calls clear(rdstate() | state) (which may throw basic_ios::failure
(27.4.2.1.1)).