Increment the iterator.
| 352 | |
| 353 | // Increment the iterator. |
| 354 | void increment() |
| 355 | { |
| 356 | ASIO_ASSERT(current_ != end_ && "iterator out of bounds"); |
| 357 | ++position_; |
| 358 | |
| 359 | // Check if the increment can be satisfied by the current buffer. |
| 360 | ++current_buffer_position_; |
| 361 | if (current_buffer_position_ != current_buffer_.size()) |
| 362 | return; |
| 363 | |
| 364 | // Find the next non-empty buffer. |
| 365 | ++current_; |
| 366 | current_buffer_position_ = 0; |
| 367 | while (current_ != end_) |
| 368 | { |
| 369 | current_buffer_ = *current_; |
| 370 | if (current_buffer_.size() > 0) |
| 371 | return; |
| 372 | ++current_; |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | // Decrement the iterator. |
| 377 | void decrement() |
no test coverage detected