| Red Hat Documentation |
|
Miscellaneous istream utilities Use the following methods for housekeeping on istream objects.
Method
Method
To avoid skipping whitespace (regardless of the skipws setting on the stream), use 1 as the argument. Call istream::ipfx to simplify writing your own methods for reading istream objects. void
istream::isfx ()
If you wish to write portable standard-conforming code on istream objects, call isfx after any operation that reads from an istream; ifistream::ipfx has any special effects that must be canceled when done, istream::isfx will cancel them. istream&
istream::ignore ([int
n][,int
delim])
The second optional argument, delim, specifies a ‘boundary’ character: ignore returns immediately if this character appears in the input. By default, delim is EOF; that is, if you do not specify a second argument, only the count, n, restricts how much to ignore (while input is still available). If you do not specify how many characters to ignore, ignore returns after discarding only one character. istream&
istream::putback (char
ch)
istream&
istream::unget ()
|
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |