Move characters from the output sequence to the input sequence. * Appends @c n characters from the start of the output sequence to the input * sequence. The beginning of the output sequence is advanced by @c n * characters. * * Requires a preceding call prepare(x) where x >= n , and * no intervening operations that modify the input or output sequence. * * @not
| 231 | * output sequence is moved to the input sequence and no error is issued. |
| 232 | */ |
| 233 | void commit(std::size_t n) |
| 234 | { |
| 235 | n = std::min<std::size_t>(n, epptr() - pptr()); |
| 236 | pbump(static_cast<int>(n)); |
| 237 | setg(eback(), gptr(), pptr()); |
| 238 | } |
| 239 | |
| 240 | /// Remove characters from the input sequence. |
| 241 | /** |