cpp/io/basic istream/ignore

Extracts and discards characters from the input stream until and including.

behaves as an. After constructing and checking the sentry object, it extracts characters from the stream and discards them until any of the following conditions occurs:


 * characters were extracted. This test is disabled in the special case when equals


 * end of file conditions occurs in the input sequence, in which case the function calls


 * the next available character in the input sequence is, as determined by . The delimiter character is extracted and discarded. This test is disabled if  is.