Contents|Index|Previous|Next
Backing up

The GNU iostream library allows you to ask a streambuf to remember the current position back up. This allows you to go back to this position later, after reading further. You can back up arbitrary amounts, even on unbuffered files or multiple buffers’ worth, as long as you tell the library in advance. This unbounded backup is very useful for scanning and parsing applications. The following example shows a typical scenario.

Top|Contents|Index|Previous|Next