Rogue Wave banner
Previous fileTop of DocumentContentsNext file

22.3 Error Indication by Stream Iterators

The istream and ostream iterators by themselves have no means of indicating the success or failure of an operation. The stream being operated should be probed for good(), eof(), fail(), or bad() conditions. This is convenient as stream state can be checked for exception conditions that have been set in basic_ios ( void exceptions(iostate except_mask) ) after each input or output operation.

The streambuf iterators provide a member function, failed(), to indicate success or failure in a preceding operation on the stream buffer.


Previous fileTop of DocumentContentsNext file

©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.


OEM Release, June 1998